ValueList

  • Updated

Represents an authored Value List datatype.

getItem(value) Returns: ValueListItem

Parameters:

value

Type: string

The value to lookup in the Value List

Description:

Returns a ValueListItem for the specified value. Returns null if the value is not found.

Code Sample:

var session = inrule.createRuleSession(); 
var dataManager = session.dataManager; var valueList = dataManager.getValueList("ValueList1"); var item = valueList.getItem("Value1");

 

getValues() Returns: Array of ValueListItem

Description:

Returns an Array of ValueListItem

Code Sample:

var session = inrule.createRuleSession(); 
var dataManager = session.dataManager; var valueList = dataManager.getValueList("ValueList1"); var items = valueList.getValues();

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.