Example - Applying dynamic filters on a Tile control
The following example illustrates applying a dynamic filter on a Tile control to filter the query to get the count.
- Create two business processes, Process 1 and Process 2.
- Create one activity each for both the processes: Activity 1, Activity 2.
- Navigate to Workspace and create two jobs for both activities. Refer to the Create a job topic in TotalAgility Workspace Help.
-
Create a form <Form1> and add a Tile control to it and configure it as follows:
-
Session ID: Session _ID (Global variable)
-
Query: All Activities (Work queue query)
-
Title: Work queue
-
-
Add
Update control properties action to the form. See
Update control
properties action.
-
Map the Tile control in the
Control field and add the following properties:
-
DynamicFilterField: 5 (a numeric value that corresponds to a search field within a job/work queue/system query.) See Enumerations.
- DynamicFilterValue: Activity1
-
- Click Add.
-
Map the Tile control in the
Control field and add the following properties:
- Associate the Update control properties action to the Clicked event of the Tile control.
- Release the form.
- View this form (Form1) at runtime. Initially, the Tile control shows four activities on the tile, because it shows the total number of activities in the work queue.
-
Click on the tile.
The query filters the values on the activity names. The update control properties action is fired and displays the number of activities in Activity 1, that is 2.