Skip to content

Action – GetCommandBarItems

Eric Domke edited this page May 6, 2019 · 1 revision

Returns the controls present in a command bar.

AML Query

<!-- SOAP_ACTION = ApplyItem or ApplyAML -->
<Item type='Method' action='GetCommandBarItems'>
  <item_id><!-- Context item ID --></item_id>
  <item_type_id><!-- item type ID --></item_type_id>
  <location_name></location_name>
  <item_classification></item_classification>
</Item>

Example (Input)

<Item type='Method' action='GetCommandBarItems'>
  <location_name>MainWindowToolbar</location_name>
  <item_classification>%all_grouped_by_classification%</item_classification>
</Item>

Example (Result)

<AML>
  <Item type="CommandBarButton" typeId="2C95B39863F346EFB224DCB85390F465" id="5D8BD509914244229219E91094DACFB1">
    <additional_data>{ "cui_disabled": "true" }</additional_data>
    <config_id keyed_name="com.aras.innovator.cui_default.mwt_main_toolbar_new" type="CommandBarButton">5D8BD509914244229219E91094DACFB1</config_id>
    <created_by_id keyed_name="Super User" type="User">AD30A6D8D3B642F5A2AFED1A4B02BEFA</created_by_id>
    <created_on>2018-01-08T02:45:33</created_on>
<!-- ... -->
  </Item>
</AML>
Clone this wiki locally