Expand my Community achievements bar.

Populating a drop-down list from a data file example

Avatar

Former Community Member
Hi All,



LiveCycle Designer ES Scripting Reference contains the following example of populating a drop-down list from a data file:



// Populate the drop-down list with values from a data file.

var oItems = xfa.resolveNode("xfa.record.groupNode.list");

var nItemsLength = oItems.nodes.length;

for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++) {

DropDownList1.addItem(oItems.nodes.item(nItemCount).value);

}

DropDownList1.rawValue = "Second item in list";



In case that my file is c:\my.xml, does anybody have an idea how the "xfa.record.groupNode.list" object references to that file?



Thanks in Advance!
0 Replies