|
|
Component: Lookup List
|
|
Looks up stored lists and their list items into process variable. It could be used to populate a drop down list in a form. \\Here is a sample JavaScript function in a form to prepopulate a drop down list with the list item retrieved here.
{code}
function populateDropDownList(dropDownField, hiddenField, delim) {
var choiceList;
var choices;
dropDownList.clearItems();
choiceList = hiddenField.rawValue;
choices = choiceList.split(delim);
var numchoices = choices.length;
for (var i = 0; i < numchoices; i=i+1) {
dropDownList.addItem(choices[i]);
}
}
// populateDropDownListWithValue will have similar content, except for this:
function populateDropDownListWithValue(dropDownList, hiddenField, delim) {
...
for (var i = 0; i < numChoices; i=i+2) {
dropDownList.addItem(choices[i], choices[i+1]);
}
}
{code}
|
Operations
|
Icon
|
Name
|
About
|
Link |
|
|
Lookup List Item
|
Retrieve list items from the selected list and store in a string type process variable.
Why use it
TODO
|
Properties |
Input Parameters
|
List To Retrieve
|
|
|
List Name - Select a list to retrieve its list items. Or create a new list here.
Ordered By - The listing order for the list items to appear, whether it is sorted by its list item labels or the list items creation sequence.
Separator - A delimiter/separator to separate items (and its values) on the result.
Retrieve Option - Whether to retrieve labels of the list items only or including their values as well.
Test - Click on "Test" button to test retrieving list items for the specified list. Note: All parameters have to be specified literally for testing.
|
|
|
List Names - The name of your new list.
List Items - Add items here, specifying a sequence order, label and its associated value.
|
Output Parameters
|
|
Output String Location - Process variable to store the list items.
|
|
DOWNLOADS
DOCUMENTATION
|
|