Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

add multiple rows with add a row button

Avatar

Level 4

Not sure of how to add this to my script, but my dilemma is I would like to add the row above in addition to the current row.

Right now the script in the "add row" button is:

Table1._Week.addInstance(0);

the row above is Table1._Above

How do I go about adding the row above to the script?

Thanks

5 Replies

Avatar

Level 10

You can access the instance manager of any Row from anywhere in the form..

So you can write script by being in the Week Row to add a new row for Above row.

In your click event you can write like this..

Table1._Above.addInstance(0);

Thanks

Srini

Avatar

Level 4

Not too good scripting...how is it actually written in the script to get it to function properly.

Table1._Above.addInstance(0);

Table1._Week.addInstance(0);

Avatar

Level 4

By the way I would like for the add instance in one button not multiple buttons.

Avatar

Level 10

Can you send the problem form to LiveCycle9@gmail.com so it will be easy to figure out..

Please mention where the problem is..

Thanks

Srini

Avatar

Level 4

the email address provided is coming back undeliverable.