Expand my Community achievements bar.

SOLVED

How to expande multiple table row from a single button

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 1

I managed to acheive what I needed to do using LCD's Action Builder.

The Action builder makes it so easy to create advanced content.

I selected my button obect for the list, then chose - create add a new instance,

then chose my table from the list.

I now have a table with multiple rows that expand when a single button is clicked, fantastic!

Regards Maxwell

View solution in original post

1 Reply

Avatar

Correct answer by
Level 1

I managed to acheive what I needed to do using LCD's Action Builder.

The Action builder makes it so easy to create advanced content.

I selected my button obect for the list, then chose - create add a new instance,

then chose my table from the list.

I now have a table with multiple rows that expand when a single button is clicked, fantastic!

Regards Maxwell