Associate grid control actions with InTouch scripts and animations
- Last UpdatedJan 16, 2025
- 1 minute read
You can hide the buttons of the SQLDataGrid graphic and trigger data retrieval from outside the grid interface. For example, you can configure a button to generate a dataset from an InTouch application.
To do this, use the CmdRetrieve property and associate it to an InTouch tag. The tag is linked to the InTouch button.
To configure dataset retrieval from InTouch
-
In WindowMaker, open the InTouch window.
-
Double-click the SQLDataGrid graphic. The Edit Custom Property dialog box appears.
-
In the Custom Properties panel, select the ButtonPanelHide property.
-
In the Default Value field, type True.
-
Select the CmdRetrieve property.
-
In the Default Value field, select an InTouch tag by one of the following actions:
-
Type a tag name. If the tag does not exist, you are prompted to define a new tag.
-
Select the ellipsis to open the Tagname Dictionary and select a tag.
For this example, type CmdRetrieve in the field.
-
-
Select OK and define the tag as a Memory Discrete tag.
-
When you finish defining the tag, close the Tagname Dictionary and select OK on the Custom Properties panel.
-
Create a button on your InTouch window. For this example, its caption is Retrieve.
-
Link the CmdRetrieve tag to the button.
-
Switch to run-time mode and select Retrieve.