General InformationThis opening ID is invoked before and/or after a modifying action to update a custom attribute. It also can be invoked outside L2P as well, hence the parameter contains attribute for list of 1D (logical Item), 2D (associated logical), 3D (associated physical) and the associated Article solutions.
Input ObjectsInput objects must be of the following types:
Note:
The parameters are different in with & without ITEM scenario.
Context Object Parameters
Sample
let i1DList(list)
let i2DList(list)
let i3DList(list)
let iArticleSolutionList(list)
let index(Integer)
let lsize(Integer)
let bIsPreProcess(Boolean)
let facet3DOcc(ProductOccurrence)
let facet2dOcc(LogicalOccurrence)
let facet3DInst(VPMInstance)
let facet2DInst(RFLVPMLogicalInstance)
let sActionPerformed(String)
let sDescriptionInst(String)
let sMessage (String)
set i1DList = Parameters.GetAttributeObject("ListInput1DFacet")
set i2DList = Parameters.GetAttributeObject("ListInput2DFacet")
set i3DList = Parameters.GetAttributeObject("ListInput3DFacet")
set sActionPerformed = Parameters.GetAttributeString("ActionPerformed")
index = 1
Notify(sActionPerformed)
if (NULL<>i1DList)
{
set lsize = i2DList.Size()
}
Notify ("Pre-post BR executed#",lsize)
for index while index <= lsize
{
Notify ("Pre-post BR inside For")
if (i3DList <> NULL and NULL <> i2DList)
{
if (0 < i3DList.Size())
{
set facet3DOcc= i3DList.GetItem(index)
set facet2dOcc= i2DList.GetItem(index)
if (facet3DOcc <> NULL and facet2dOcc <> NULL)
{
set facet3DInst = facet3DOcc.Instance
if (facet3DInst <> NULL)
{
set sDescriptionInst = facet3DOcc.Name + "_"+ facet2dOcc.Name
facet3DInst.SetAttributeString("V_description", sDescriptionInst)
Notify("3D Description updated with 3d Facet names #", sDescriptionInst)
}
}
}
}
}
| |||||||||||||||||||||||||||||||||||||||||||