Update control properties action
Use the Update control properties action to set properties of a control to dynamically change the display or behavior of the control.
-
On the form modeling bar, click
Actions and click
New.
The New action dialog box is displayed.
- On the Type list, select Update control properties.
- Change the default Name (UpdateControlProperties1) to something meaningful.
- Optional. Enter a Description for the action.
- On the Control list, select a control. Available controls for this action are Tile, Chart, Work queue, Workload, and Job list.
-
Additionally, for a Chart or Tile control, for
Query type, select
Job query,
Work queue query, or
System query.
The filter fields for the selected query are displayed.
The respective properties available for update appear under Properties. For example, for a Tile control, the DynamicFilterField, DynamicFilterValue, DynamicQueryID, DynamicQueryName, and DynamicQueryType properties are available.
-
To select a property to update, do the following:
- Click .
- On the Property list, select a property.
-
On the
Source/Value list, select a form control, form variable, global variable,
or filter field, or click the Edit icon and enter an inline value that identifies the field.
You can dynamically filter query results on the Tile, Chart, Job list, Work queue, and Workload controls. If you select the DynamicFilterField property, a Filter field tab is available for controls and you can select a field to map. See Dynamically filtering work type fields.
-
Click
Add.
The new property appears under Properties list.
-
Click
Add.
The newly created action appears on the Actions list.
-
Associate the action with a control, such as a button, to trigger this action. See
Configure actions for form control
events.
When you trigger this action, the properties in the list are applied to the control with the value you supplied.
See also:
Dynamically filtering work type fields
To dynamically filter the work type fields, do the following:
- Assign the configured work type in the work queue query.
- You can call the "Update control properties" action in the form.
- On the Control list, select a work queue control.
- Provide the work type filter field names for "DynamicFilterField" and "DynamicFilterValue" to be mapped to pass the dynamic value at runtime.
- On the work queue control properties panel, select the Query for Initialize with on the Search tab.
- On the Query list, select a query that is used to load the initial list of activities in the work queue. For more information, see Search properties.
-
Release the form.
When you open the form at runtime, the work queue control displays the query results, and on executing the update control properties action, you can filter by providing work field values.