you make invoke a shortlived process[which populates your dropdown values, example: Query for Multiple Rows as XML service] when the user start a process from workspace and prepopulate a dropdown list using that xml file.
First of all, thanks for your response !
I already have an xml file that I use to preview the form in LiveCycle designer.
How exactly do I "prepopulate a dropdown list using that xml file" in a process ?
is my understanding correct ..
you want to prepopulate a dropdown list using xml file in XDP/PDF form, when a user initiates a process from workspace..
Yes, you're right.
I have dropdown list which should contain like hundreds of values, so i want those values to be stored in an xml file, simply maintainable.
So I want to add the values in the dropdown list when the users initiates a process from the workspace, exactly
ok gr8 ..
Assuming that u are able to get the xml file from LC process to your XDP/PDF form field.
You can resolve the xml file to dropdown list as -
//clear drop-down list box
choiceList = XMLData.parse(*XML_Field.rawValue, false);
//split the choiceList into an array of values
choices = choiceList.resolveNodes("root.element[*].*NODENAME");
var numchoices = choices.length;
//add an array of values to drop down list
for (var i = 0; i < numchoices; i++)
*DROPDOWN_Field -- Is your drop-down field.
*XML_Field -- Is your XML data that is stored in a TextField.
*NODENAME -- Is node name in your XML to be resolved.
Hope it Hepls..
Thanks a lot chalukya !
This is not the way I wanted to do this at the beginning, but it works fine !