Avatar

Level 10

Hi,

To loop though the second table adding rows to the sub-table use some code like;

for (var i = 0; i < Clients._AttorneyInfo.count; i++)

{

var client = xfa.resolveNode("form1.Main.Clients.AttorneyInfo[" + i + "]");

client.ClientTable.WitnessInfo.instanceManager.addInstance();

}

I've updated your sample to check the above code

https://sites.google.com/site/livecycledesignercookbooks/home/Job%20Productionform.updated.pdf?attre...

The delete button would be similar but you would use the _AttorneyInfo.index as a parameter to the removeInstance() method

Regards

Bruce