I read the discussion on this function and created a sample form to test the code before implementing it in my main form but I can't get it to work.
This is what I put in the "preOpen" of the Drop Down list:
form1.DropTest.DropDownList3::preOpen - (JavaScript, client)
// First clear the items from the list
this.rawValue = null;
this.clearItems();
// Build new items
var nRows = xfa.resolveNodes("form1.DropTest.Table1.Row1[*].Name");
for (var i=0; i<nRows.length; i++) {
this.additem(nRows.item(i).rawValue);
}
This is the hierachy of the form
I am using a table with a repeating row (Row1).This is what the form look like expecting the names to show in the drop down list but it doesnt
I would appreciate if somoene could tell me what I am missing. Thanks