Adding a Macro Execute

If you added an execute to the Defined Action list box, the macro definition box appears at the bottom of the dialog.

1. Complete the macro definition box as follows:

image\img00378.gif

Figure 38: Define Macro Execute

Mco Handlers: Select the MCO to execute from the list of existing MCOs in the Mco handlers list

MethodName: Specify the method/function in the selected MCO to execute.

Config the parameters for the request: Specify any parameter values to pass to the selected MCO method/function. Click Add and a new editable name/value pair row appears in the list. Click in each field to enter the name/value pair. To remove a parameter value, select it and click Remove. To change the order of a parameter value, select it and click Up or Down.

2.  Click Finish.

 The execute macro appears in the Outline view. To view details about this macro, click + to expand it in the Outline view. Information about this macro also appears in the Properties view.

3.  To view the macro in the file, click the Visual Editor Source tab. The macro appears similar to the following,:

 <macro:macro xmlns:macro="http://openxal.org/core/macro" name="defaultMacro2">

<mco:execute xmlns:mco="http://openxal.org/core/mco"/>

</macro:macro>