How to create a right-click command on Active Console with a drop down box for data selection
When defining a user command, you can configure arguments to use userInput and choose the xPathOptions option. The xPathOptions takes an XPath which will be evaluated when users run the command from the Active Console.
The XPath provided should end with a property, which may often be the name (e.g. /@name) or cell value (e.g. /@value).
From the documentation: Takes one or more XPaths as configuration. These XPaths are evaluated on the client and the result of this is presented to you as a multiple choice selection. The XPath results are presented to you in the same order as the XPath configuration, i.e. the results of the first XPath followed by the second XPath etc. Duplicate entries are removed from the result list. If the XPath provided is not correct, the command may show the message " Error: The path did not return variants [
For the XPath Editor, you can drag the Property box from the toolbar to the end of XPath, and then edit the box for the XPath property required. The XPath Editor will then show the text representation of the XPath.
For example, the XPath below shows the name of all Managed Entities that are in Critical severity. /geneos/gateway/directory/probe/managedEntity[(state(“severity”)=“3”)]/@name
The right-click command would display the following dialog when selected.
The command configuration in XML format has been attached for your reference.