The Global Table is used to define the device input of the Qapp in a table format, which is convenient to transmit to the coming nodes in the execution flow. The data specified in the Global Table is also stored in the Qapp file. Therefore, when you share a Qapp file with your colleagues, they can reuse the table input or continue to edit it.
Adding Table Input
In the Qapp Editor, click the
icon under the Execution Flow tab. You can use the following ways to add one or more tables into the global table.
1.Click New Table. A tab page named table1 is created. 2.In the table1 tab page, click New Column > Static Variable to define the column instance in the Column Property dialog box. 1)In the Name field, rename the column header name. For example, IP_address. 2)Specify the column type (string by default). 3)Specify an initial value for the column. 4)Click OK. 5)Click New Row to create a row and display the initial value.
 Tip: To edit a column, select the table header and then click Edit.
3.To have chances to modify the table entries before executing the Qapp, you can select the Set as Input Table check box. A table hyperlink will be generated at the execution interface and you can click the hyperlink to edit the table.
 |
1.Prepare a CSV file to be imported.
 There are the following requirements:
▪Table name — occupy cell A1 and must start with ##. ▪Column headers — occupy the second row. ▪Values — occupy the third row and behind. ▪File name — should meet the following requirements: othe first letter should be a-z, A-Z or _. ono more than 60 characters long. onot include any of the following special characters:
~ ! @ # $ % ^ & * () [] {} < > - + =. , ? ' | /\\ \" : ; tab" 2.Click Import from CSV to browse and select the .csv file.
The imported data will be listed under the table tab. 3.Select the column header in the table area and click Edit to adjust the column properties if necessary. 4.To have chances to modify the table entries before executing the Qapp, check the Allow editing at run time check box; otherwise, the values in the table will be used directly to run the Qapp. |
Tip: After adding global tables, you can go to the Device Queue node to select Table from the drop-down menu of Device.
See also:
▪Table attributes
▪Device Queue