Lookup List DSC

Added by Kendy Yus, last edited by Lachlan Aldred on Apr 01, 2009  (view change)

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

Component: com.avoka.livecycle.lookuplist 8.0

LookupListService Service

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.

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]);
	}
}

Operation Title: Lookup List Item   (getListItem)

Lookup List Item: Retrieve list items from the selected list and store in a string type process variable.

Input Parameter Type Description Editor
List Name java.lang.String Select a list to retrieve its list items. Or create a new list here.  
Ordered By java.lang.String 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 java.lang.String A delimiter/separator to separate items (and its values) on the result.  
Retrieve Option java.lang.String Whether to retrieve labels of the list items only or including their values as well.  
Test java.lang.String Dummy Test parameter to test retrieving list items by clicking on the "Test" button. Note: All parameters have to be specified literally for testing.  
Output Parameter Type Description
Output String Location java.lang.String Process variable to store the list items.

For how to configure license information for this component service - Lookup List, please click on the following link:
Avoka LiveCycle ES Component License Configuration

Please send us any questions or comments on this documentation regarding Lookup List by clicking on the following link:
Feedback

Licence Configuration:

Parameter Type Description
License Key java.lang.String The license key. If blank this Solution Component will assume evaluation mode and allow 100 invocations or 6 hours up-time.
License Organisation java.lang.String The license organization. If blank this Solution Component will assume evaluation mode and allow 100 invocations or 6 hours up-time.