Table Elements Scripting

Referencing Table cells in script
You can refer to the value property of an element in a Table cell, without using the elements name, by referencing the value property of the cell in which the element is located. Only one element, the first encountered in the grid cell, can be referenced using this syntax. This method of referencing can only be used for elements that have a value property, for example, text boxes.


Looping through Table cells
As you don’t need to refer to the elements within a table cell by name, you can create a looping structure very simply. This example uses the third column of a table and loops through the first three rows, placing the value 10 in an element.

for i = 1,3 do
Page1["Audit"]["MajorRisks"]["cell_3_" .. i].value = "10";

Was this article helpful?
0 out of 0 found this helpful

Need further help? Contact our Support Team