For Columns and Objects like Reports, there exists a command
obj << Get Data Table();
to get a reference to the respective data table.
Is there a similar function for Table Scripts? something like
This Data Table()
I have issues with some lazy implementations:
- dt = current data table() in the table script:
This works fine if I run the script from the table itself. To have the chance to click on the play button, one has to select the data table. Therefore, it will be the current one. good.
But when I trigger the Table Script via JSL, another data table could be the current one.
workaround: in the jsl script, first, I have to make the data table the current one, then trigger the table script. - reference the data table by its name.
this works as long as no other data table was opened with the same name. -> " 2" is added automatically to the table name. -> JSL script won't find the right script.