Command attributes

Each MapDrawer node can have one COMMANDS node and one ITEMS node as children. The COMMANDS node represents the different actions users can perform in the Map Drawer after it is open. The ITEMS node represents the options that are displayed in the drop-down menu when a user clicks the Map Drawer button.

The COMMANDS node can have one or more Command nodes as children, each of which represents an action that users can perform in the Map Drawer. Each Command node can have these attributes:

Attribute Description
Access Id Access ID for this command. The access ID is a unique number that identifies the permission in Access Control that users must be granted to gain access to this command.
appletmoniker Moniker of the applet that Infor Public Sector will start when users select the command. For example, a “Create Work Order” command will launch Hansen.WorkManagement.CreateWorkOrderApplet. If you don’t specify a moniker here, the command applies to the applet from which the Map Drawer was opened.
closemap Can be set to True or False to indicate whether Infor Public Sector should close the Map Drawer after executing the command.
Note: This attribute is ignored if you specify a value for the popupmessage attribute or the appletmoniker attribute, because in each case another window is opened.
id Unique ID for the command.
items List of items that the command applies to. The command will only be available if you select one of these items from the menu to open the Map Drawer. Items are identified by their id attributes. You can enter multiple ids separated by commas, or you can enter “*” if the command is available for all items. “*” is the default.

Wildcards such as Hello.* are allowed, but *.Hello is treated as a literal. Item ids can also contain wildcards.

license License that users must be granted to use this command.
markmoniker For action and context commands, the markmoniker attribute specifies the moniker of the component associated with the marker that the command applies to, such as Hansen.AssetManagement.Asset for the Set Asset command in the Create Work Order Map Drawer. You can enter multiple monikers separated by commas, or you can enter “*” if the command is available for all markers.
minimumfeaturecount Number of features that must be selected in the map before this command is available.
popupmessage Text of the message that Infor Public Sector will show when the command is executed.
querymoniker For query commands, the querymoniker attribute specifies the moniker of the component that is displayed in the query layer.

Specify a dataset moniker, or a moniker with LocatingProperties that identifies a dataset. Locating properties are defined for assets, billing accounts, applications, cases, inspections, reviews, parcels, addresses, properties, work orders. For example, a project application has address, parcel, and property locating properties. All three of these component types are queries.

rule Method that will be executed when a user selects the command. The method signature varies depending on the command type. For point commands the method signature is public Result MethodName(double, double). For context commands it is public Result MethodName (IComponent). For action commands it is public Result MethodName (ComponentList). If you don’t enter a rule Infor Public Sector will use InitView by default.
state Initial state of the layer associated with a query command. Can be set to On or Off.
text Text of the command. For action commands, the text is displayed in the Action button menu. For context and point commands, the text is displayed in the popup menu when you right-click a marker or a point on the map. For query commands, the text is displayed as the label of the query layer.
type Type of command. Can be set to one of these values:
  • action: The command is displayed in the drop-down menu when users click the Action button. For example, in the Asset InfoViewer Map Drawer you can select several assets on the map and then use the Action button to create an asset group.
  • context: The command is displayed when users right-click a map marker. For example, in the Create Work Order Map Drawer you can right-click an asset marker and select Set Asset to select an asset for a work order.
  • point: The command is displayed when users right-click any point in the map. For example, in the Submit a Service Request Map Drawer you can right-click a point and select Set Point Location to use that point’s X and Y coordinates for a service request.
  • query: A query command adds a query layer to the Map Drawer. For example, the Create Work Order Map Drawer includes queries that show open work orders near an asset or address. Query commands are displayed below the standard layers on the Layers tab.