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: table_name The model full path of the table to change properties on tag_table A 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
            
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.