Expand my Community achievements bar.

Duplicate a complete table or subform

Avatar

Level 1

Hi,

on page1 I have created a subform containing a table that can be filled in by the user. There is "add row" and "remove row" button on every row so the table can contain multiple lines.

Coping values from one txtfield to another works fine, and simple. But for this table I do not know how to create a full copy on a different page.

How can I do this using javascript?

Any help is very much appreciated!

ErikNL

3 Replies

Avatar

Level 10

Are you trying to copy the data from one row to the newly added row (OR) do you want to copy the entire table and replicate it in an other page?

Thanks

Srini

Avatar

Level 1

Hi Srini,

the entire table needs to be replicated to another page.

Thanks!

Avatar

Level 10

Let us say you have Table1 on Page1 and you want to display the data in Table2 on Page2.

Place Table2 on Page2 at the design time itself..

Make sure, all the fields in the Table2 match the names of the respective fields in Table1.

Then while you add a row to Table1 at the run time, make sure you add a row to Table2 as well.

Write code in the exit event of each field in Table1 to display the data in the Table2 in the respective Row.

Check the attached sample..

https://acrobat.com/#d=E2SzwzTc9DDYp92nOawt2g

Thanks

Srini