Skip to Content
0
Former Member
Feb 14, 2011 at 03:47 PM

Lost values in DropDown List

203 Views

Hello Experts!

I created a dynamic interactive form with a dynamic table. This table has two buttons. One to add a new row and one to delete

the selected row. The row has field called EAN. This field is formatted as dropdown list. I created i the interface of the form a table and bind the table to this dropdown list field. With my print program i fill the table, generate my form and download it on my pc.

Now my problem. After download, i open my form and the first row of my table has the first value as content in the field.

Every thing is right. But if a create a new row, the field is empty. This is also correct. But if i will select a new value from my dropdown list, one value is missing and i got two new blank values in my dropdown list. This runs so on if i create a new row.

I don´t understand why i lost my values in the dropdown list, when i create a new row.

I hope anybody of you knows the solution for that.

For your information, here is my coding to add the new row:
data.#subform[0].FORM.DATA.DATA_ITEMS.I_DATA.STRUC.Teilformular1.Schaltfläche1::click - (JavaScript, client)
// xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
var anInstanceManager = this.parent.parent.instanceManager;
var newInstance = anInstanceManager.addInstance(1);
var aToIndex = this.parent.parent.index + 1;
var aFromIndex = newInstance.index;
    anInstanceManager.moveInstance(aFromIndex, aToIndex);}

Regards

Barney