Skip to main content
Version: 9.0.2

gre.set_table_attrs

gre.set_table_attrs(
table_name,
tag_table
)

Set properties for a table.  The table_name is the name of the control or a variable. The tag_table contains the tags and values for the properties to set.

x, y, width, height, hidden, active, rows, cols, xoffset, yoffset, scroll_enabled

The scroll enablement value can only be set if the table had scrolling enabled in Designer.

Parameters

ParameterTypeDescription
table_name#stringThe model full path of the table to change properties on.
tag_table#tableA table with tags as the keys and the new values stored as the table's key values.

Example

function resize_table()
local dk_data = {}
dk_data["rows"] = 5
dk_data["cols"] = 10
gre.set_table_attrs("my_table", dk_data)
end