02-24-2021 06:27 AM - edited 02-24-2021 06:28 AM
Hi,
I am having issues with a Webex Codec Pro, it's to do with the touch panel, and the ability to remove and save ( restore? ) a panel. In this case, the panel is called "panel-tech".
The command xCommand UserInterface Extensions Panel Remove PanelId: "panel-tech" works perfectly well and removes the requested panel, however the command xCommand UserInterface Extensions Panel Save PanelId: "panel-tech" does not restore the panel it kills the serial connection in strange way; the serial port continues but just echoes back the command sent ( if echo is on ), so where I would send my keep-alive message "xStatus SystemUnit ProductId" and get back the name etc all I get back is the command if echo is on or nothing if echo is off.
The software versions is ce 9.9.0 46f7ea38fda 2019-10-10. Is this an issue that has been resolved in later software versions?
TIA
Martin
03-15-2021 06:21 AM
Hello @MJW041156
The xCommand UserInterface Extensions Panel Save expects a multiline command to follow it, which needs to include the XML for your Panel.
You can get the XML of the panel you designed by following these steps
This will give you the XML for your panel.
Using the Macro Editor, you can now load in your panel with the following notation. just be sure to update your Panel ID and your XML
xapi.Command.UserInterface.Extensions.Panel.Save({ PanelId: 'panel_1' }, `<Extensions> <Version>1.8</Version> <Panel> <Order>3</Order> <Type>Home</Type> <Icon>Tv</Icon> <Color>#FF503C</Color> <Name>Test Panel</Name> <ActivityType>Custom</ActivityType> <Page> <Name>My Test Page</Name> <Row> <Name>Row Name</Name> <Widget> <WidgetId>Text button</WidgetId> <Name>Button</Name> <Type>Button</Type> <Options>size=2</Options> </Widget> <Widget> <WidgetId>widget_2</WidgetId> <Type>Button</Type> <Options>size=1;icon=home</Options> </Widget> <Widget> <WidgetId>widget_1</WidgetId> <Name>Text</Name> <Type>Text</Type> <Options>size=1;fontSize=normal;align=center</Options> </Widget> </Row> <Options/> </Page> </Panel> </Extensions>`
);
Your can even take the of this a step further and create more Dynamic Layouts using this command.
Check out this TicTacToe example I contributed to the Cisco Devnet repo
https://github.com/CiscoDevNet/roomdevices-macros-samples/tree/master/TicTacToe
03-26-2021 01:53 AM - edited 03-26-2021 02:24 AM
Hi,
Thanks for the reply. My issue is I only have a serial connection; are you saying I can save the whole thing as a macro within the codec, and call the macro from a serial command?
I've just found the command for running the macro - "xCommand Macros Macro Activate" so the answer is yes, so all I need to do now is load the macro(s) and test it. I'll post back when I've tried it. Thanks for the clue.
03-26-2021 04:34 AM
Yes... that works. Had to strip all unnecessary eol and spaces before pasting in the xml, but it works. Thanks very much for the tip.
04-13-2021 02:20 AM
I have an issue with the xCommand calls, hopefully you can help. If I run the macros from the WebUI then the TC10 layout changes, all good. If I call the macro from xCommand then although the WebUI shows the macros as running, the TC10 layout does not change, any ideas?
04-13-2021 10:57 AM
Would advise you to post your question in your own post as it’s off topic to the OP.
04-14-2021 12:49 AM
I AM the original OP.
04-14-2021 05:43 AM
Oh my bad, sorry.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide