Table control - filtering historical data using a time picker
This article explains how to use local DateTime variables to filter historical data presented in a table and set the times using a user-friendly time picker in form of a calendar. The GraphWorX display used in the example is added as an attachment.
In GraphWorX, data presented in a Table control can be filtered using local variables. When presenting historical data, the most commonly used filter is limiting the Timestamp range, which can be done in the Filters tab of table settings like this:
To let the operator modify the time range in Runtime, the local variables can be connected to a Label with the TimeDate dynamic. Use the DateFormat and TimeFormat parameters of the dynamic to set the format you want:
Because the Picker parameter above is set to True, clicking on the control in Runtime will show a convenient calendar window to set the desired date and time:
You can also utilize buttons and expressions to set predefined time ranges, for example all data from today (the expression result needs to be a string):