I would like to make an array of tables.
I have Column Selector with 2 Datasets called FirstTable and SecondTable in it. I would like to add them to one array to pass to the funciton that exports data to Excel.
How many and which Dataset i am exporting to Excel depends on CheckBoxes.
Scripting code on Button Event:
[code]CheckBox1 = event.source.parent.getComponent(‘CheckBox1’)
CheckBox2 = event.source.parent.getComponent(‘CheckBox2’)
table = event.source.parent.getComponent(‘Column Selector’)
tablesArray = 
if CheckBox1.selected == 1:
if CheckBox2.selected == 1:
fpmi.dataset.exportExcel(“Raport.xls”, 1, tablesArray)[/code]
I get such error on line “tablesArray.append[table.FirstTable]” with text:
Traceback (innermost last):
File "<event:mouseReleased>", line 6, in ?
Could you please help how to add to array in a right way?