Hi,
I have a function that reads a text file into a global table and sometimes I want the table to be in bundle mode and sometimes not. If in bundle mode, I cannot write to the row headers so I would need to know if the table is in bundle mode.
How can I check if a table is in bundle mode, i.e, "Use bundle" is checked, within the code? I cannot seem to find a node that is one or zero depending on if the table is in bundle mode. The only difference is that the data node is different in the tree.
The code below checks for the subnodes of the table data node. Bundles have zero child nodes for the data node. But is this reliable? Can there be a table in not bundle mode with zero rows or is there always at least one subnode to the data node for a normal, i.e. not bundle table?
//reference table Table table = Table("Table"); //check if table has bundle mode set return table.as(treenode).subnodes.length;
Kind regards,
Axel