PlmParameter.GetAggregatingObject()
Method that retrieves the object that aggregates the current object parameter. The result is returned as a list of one element. The parameter is either aggregated through the ParameterAggregation relationship and has a parent or it is not and the list is empty.
Signature
PlmParameter.GetAggregatingObject() : List
ReturnType
List
Example
Let myParm(PlmParameter)
Let listAggregating(List)
Let listPointing(List)
Let aggregating(DatabaseObjectType)
Let pointing(DatabaseObjectType)
Let i(Integer)
Let size(Integer)
listAggregating = myParm->GetAggregatingObject()
if 1 == listAggregating->Size()
{
set aggregating = listAggregating->GetItem(1)
/* some kind of treatment */
}
listPointing = myParm->GetPointingObjects()
i = 1
size = listPointing->Size()
for i while i <= size
{
set pointing = listPointing->GetItem(i)
/* some kind of treatment */
i = i + 1
}