General InformationThe table below provides you with information related to the definition of the opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample retrieves the Item reference to use for a given product from a list of scoping Items.
Let ThisRef(VPMReference)
Let oMfgItemReference(DELFmiFunctionReference)
Let iMfgItemFatherReference(DELFmiFunctionReference)
Let iListOfScopingMfgItems(List)
Let oMfgItemType(String)
Let oMfgItemMagnitude(Integer)
Let iMfgItemContext(String)
Let NbOfScopingItems(Integer)
Let FatherDesc(String)
Let index(Integer)
Let ItemReference(DELFmiFunctionReference)
Let ItemDesc(String)
set ThisRef = ThisObject.Reference
oMfgItemReference = NULL
/*Read the scoping items */
set iListOfScopingMfgItems = Parameters->GetAttributeObject("iListOfScopingMfgItems")
set NbOfScopingItems = iListOfScopingMfgItems.Size()
Trace(1 , "NbOfScopingItems : ", NbOfScopingItems )
if (NbOfScopingItems > 0)
{
/* Read father item */
set iMfgItemFatherReference = Parameters->GetAttributeObject("iMfgItemFatherReference")
if (iMfgItemFatherReference <> NULL)
{
set FatherDesc = iMfgItemFatherReference->GetAttributeString("V_description")
Trace(1 , "FatherDesc : ", FatherDesc )
}
index = 0
for index while index < NbOfScopingItems
{
index = index+1
set ItemReference = iListOfScopingMfgItems.GetItem(index)
if (ItemReference <> NULL)
{
set ItemDesc = ItemReference->GetAttributeString("V_description")
Trace(1 , "ItemDesc : ", ItemDesc )
if (ItemDesc == FatherDesc)
{
set oMfgItemReference = ItemReference
}
}
}
}
Parameters.SetAttributeObject("oMfgItemReference" , oMfgItemReference)
if (oMfgItemReference == NULL)
{
Trace(1 , "oMfgItemType : ", oMfgItemType )
oMfgItemType = "Provide"
oMfgItemMagnitude = 0
Parameters.SetAttributeString("oMfgItemType" , oMfgItemType)
Parameters.SetAttributeInteger("oMfgItemMagnitude" , oMfgItemMagnitude)
}
}
| |||||||||||||||||||||||||||||||||||||||||||||||||