cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic rows in tables, second line values are duplicated on every lines

Former Member
0 Kudos

Hello,

I am building an offline form interfaced with an abap program.

The abap program is sending a table define like this :

material | batch | quantity | unit

I add javascript in the form in order to add dynamically new rows to this table :

button ADD :

TABLE.LINE.instanceManager.addInstance(1);

//Invoke the recalculate method to include the field values from the added row in calculations.

xfa.form.recalculate(1);

button DELETE :

xfa.form.data.MAIN.table.TABLE._line.removeInstance(this.parent.index);

// Invoke the recalculate method to update the form calculations.

xfa.form.recalculate(1);

My problem is that the data table only have two line, and even if I add new line, the second line values are copied to the next ones...

Table is well defined as 1 to n..

Thank you for your help.

Accepted Solutions (0)

Answers (1)

Answers (1)

chintan_virani
Active Contributor
0 Kudos

Have a look at the Dynamic Interactive Purchase Order sample form located in your Adobe Designer Installation folder and see how they have done it. May be it will give you some insight.

Chintan

Former Member
0 Kudos

Resolved by myself.

the data in the table was linked to "TABLE.LINE[*].data"

I changed it to "data" and change the line to "LINE[*] and the table to "TABLE".

Former Member
0 Kudos

Hello Mr.Louis,

I'm having a similiar problem.

I'm using LCDsgn 8.0/Adobe Reader 8.1 and OS is MS Windows XP Proff 2002.

My Internal Table EMPNO /// Name /// City.

In my case there is no duplication. But, when I add row,

1. the empty row get added.

2. I do the entry in Name and City fields and go for addition of another new row.

3. It adds a new row, but clears name and city of the previously added row.

4. When I add a new row again, and enter all values then it modifes with correct value for the row effected in step 3. But entry for new row added get similarly erased.

Any insight towards the resolution of this would be highly appreciated.

Regds,

Srinivasan.