Creating a dynamic Change Field action
To determine the field to be changed at runtime, use the Field Value option when creating the Change Field action, and supply the field or keyword that will identify the field ID to be changed at runtime. To allow the workflow to obtain this value from a field, add the field to the associated form. (If workflow will set the value in this field, it can be a hidden or display only field.) A Change Field action can also be defined to trigger the workflow for activating the dynamic context menu of a table.
For example, the Change Field Example form contains a field named "Dynamic Field Changer." At runtime, the user or the workflow enters a field ID in the Short Description field. When the user clicks the Click Me button, the label on the Short Description field turns red and the field receives focus.
To define a dynamic Change Field action
- Select Field Value in the Change Field action, and then click the ellipsis button.
- In the Field/Keyword Selector dialog box, select the field or keyword (such as $FIELDNAME$ ) that will identify the field holding the field ID to change at runtime.
- Specify the field attributes to change with this action.
In this example, the field label color is changed to red and the focus is set when the workflow is executed. All other attributes are unchanged. - Save the active link.
To attach items to a context menu
- Select Field Value in the Change Field action.
- Click the ellipsis button and set the value to the Character Field on the form. At run-time, enter the fieldId of the menu that has to be attached to the context menu.
- Select Changed in Menu and click the ellipsis button. Specify the control to be attached to the context menu. For example, this could be a form, the items from which will be dynamically attached to the context menu of the table.
- Save the Active Link.