Hello,
I made my first steps with LiveCycle Designer ES2 and tried to create a form containing some tables and nested tables. In the "standard" tables I managed to add lines using Java Script in this way:
Formular1.TF_Liste.tbl_Listendaten.Zeile1.formAddRem.btnAdd::click - (JavaScript, client)
rowNum = this.parent.parent.index + 1;
this.parent.parent.instanceManager.insertInstance(rowNum);
xfa.form.recalculate(1);
I also managed to remove them in a similar way. The button "btnAdd" is inside a form in the last cell of each row.
Now I tried the same for nested tables:
Formular1.TF_Kopf.tblKopfdaten.Zeile8.tblTeilnehmer.Zeile1.formAddRem.btnAdd::click - (JavaScript, client)
rowNum = this.parent.parent.index;
rowNum = rowNum +1;
this.parent.parent.instanceManager.insertInstance(rowNum);
xfa.form.recalculate(1);
It does not work at all, but I have no idea why. I tried to find a solution here... without success. I also tried to put the nested table "tblTeilnehmer" in a form first, with the same result.
How can I add more rows like "Zeile1" in the nested table, using Java Script?
Best regards
Markus