Expand my Community achievements bar.

Changed Drop-Down-List only appears in first Instance

Avatar

Former Community Member
In my form an drop-down-list can be edited by getting values from a multi-line-textfield by first clearItems() and then read the text line by line and add each line by addItem(line). This works fine so far.



The strange thing is, that while this drop-down-list gets changed in the first instance of a repeating subform, all further instances just show up the original drop-down-list, even if the instances get added after editing the drop-down-list.



The code is below. What am I missing?



// How the function to change the list is called

buildLists.Konfigurator(this.resolveNode("Gewerbe.Langberatung.Haftpflicht.Umsetzung.Bausteine.Einstieg.Liste.Eintrag.Deckungsbaustein"), Gewerbe.Konfiguration.Haftpflichtbausteine.rawValue);



// The function itself

function Konfigurator(Liste, Feld)

{

Liste.clearItems();

s = Feld;

r = /\r/g;

e = s.split(r);

for (i = 0; i < e.length; i++)

{

if (e[i] != "")

{

Liste.addItem(e[i]);

}

}

return Liste;

}
0 Replies