I am trying to create an expanding table that expands multiple rows when a single button is clicked.
So far I have managed to create a table that expands a single row at a time using -
click
this.parent.parent.instanceManager.insertInstance();
I also tried using the following code from an existing woking file that adds a column when a button is clicked -
Table1.HeaderRow._Col3SF.addInstance(0);
Table1.Row1._Col3SF.addInstance(0);
Table1.Row2._Col3SF.addInstance(0);
Table1.Row3._Col3SF.addInstance(0);
I adapted the code to suite my own file -
click
form1.Sub1.Sub3.Table1.Row1.addInstance(0);
form1.Sub1.Sub3.Table1.Row2.addInstance(0);
form1.Sub1.Sub3.Table1.Row3.addInstance(0);
form1.Sub1.Sub3.Table1.Row4.addInstance(0);
form1.Sub1.Sub3.Table1.Row5.addInstance(0);
However I receive the following error -
click Invalid property get operation; subform doesn't have property 'addInstance'
Regards Maxwell