Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

add Row instance but with adjusted cell references

Avatar

Level 2

Is there a by to use the  AddInstance and have the cells in the "new" row have adjusted cell references , such as Cell1-1, Cell1-2 or will they have the same name always?

I want the info from the cells to link elsewhere with Global Binding.

Thanks,

tucson102

2 Replies

Avatar

Level 10

You cannot change the names of form objects during runtime.

When you repeat an existing row, all child elements (cells) will have the same name as in the other instances of the row.

Table1.Row[0].Cell1, Table1.Row[0].Cell2, Table1.Row[0].Cell3 etc.

Table1.Row[1].Cell1, Table1.Row[1].Cell2, Table1.Row[1].Cell3 etc.

Table1.Row[2].Cell1, Table1.Row[2].Cell2, Table1.Row[2].Cell3 etc.

Table1.Row[3].Cell1, Table1.Row[3].Cell2, Table1.Row[3].Cell3 etc.

If you make those cells binding global all cells with the same name will be global too and have the same value.

Avatar

Level 2

Seeing the listing of cell names helps me to visualize how it works.

Thanks for the response.