The Macro Argument property provides an optional argument to the macro.
Property Type: Static
Default Value: null
The value or result of a rule, placed in the Macro Argument property, is passed into the special variable Current Macro Argument (see Info: Special Variables).
Using the Macro Argument property allows the same macro to be used, but with differing outcomes depending on when it is run.
To Change the Default Value
Ensure the property is a static property (It will display the gray orb alongside the property name)
The default value of the static property can be changed by typing the required value directly into the property field:
- Click in the property field for Macro Argument property.
- Type the required value directly into the property field.
|Macro Argument Value (Static)
|Will pass the value 1 into the special variable Current Macro Argument.
A rule can also be built for this property by changing the type to dynamic.
|Macro Argument Value (Dynamic)
|Will pass the text Type A into the special variable Current Macro Argument.
|DWVariableTotal * QtyReturn
|Will pass the result of DWVariableTotal multiplied by QtyReturninto the special variable Current Macro Argument.
|The Macro Argument property is required to be dynamic to create the rule.
Value set in Form Designer. Static properties can be made Dynamic by double clicking the gray radio button.