Compute Values of Custom Attributes (L2P_ComputeCustomAttributeValues)

An opening ID is an entry point used to customize business logic. The Compute Values of Custom Attributes opening ID is available in the Logical to Physical Assistant Resources resource set.

This page discusses:

General Information

This opening ID is invoked to get the value of custom attributes for a list of items. It may be triggered multiple times to compute the custom attribute values for a list of items. This will be triggered for all items created during analysis and for selected items to update in panel after an action.

Definition Description
PLM Opening ID L2P_ComputeCustomAttributeValues
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: None
  • Parameters corresponds to the context object.

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)