Context Object Parameters
| Parameter Name |
Type |
Read or Write |
Comments |
ListInputObjects |
List |
Read |
The list may have L2P items of different families. You may
retrieve the list of attributes to compute from attribute “ListCustoAttrNames” on
the L2PItem. |
ListCustomAttributeValues |
List |
Write |
Each element in the list should be a list of values
corresponding to the names of custom attributes for the item. |
Sample
let iList(List)
let AttrList(List)
let listAttrValue(List)
let oAttrValue(List)
let item (L2PItem)
let index(Integer)
let lsize(Integer)
let AttrSize(Integer)
let innerindex(Integer)
let sAttributeValue(String)
let sMessage (String)
set iList = Parameters.GetAttributeObject("ListInputObjects")
Notify("CustoAttr BR Called")
index = 1
set lsize = iList.Size()
for index while index <= lsize
{
item= iList.GetItem(index)
listAttrValue.RemoveAll()
if (NULL <> item)
{
set AttrList = item.ListCustoAttrNames
AttrSize = AttrList.Size()
innerindex=1
for innerindex while innerindex <= AttrSize
{
set sAttributeValue = "Test Values"
listAttrValue.Append(sAttributeValue)
}
}
oAttrValue.Append(listAttrValue)
}
Parameters.SetAttributeObject("ListCustomAttributeValues", oAttrValue)