General InformationThe table below provides you with information related to the definition of the opening ID. This opening ID is used to customize the Manage Inconsistent Item-Product Scopes panel.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample shows you how to customize the Manage Inconsistent Item-Product Scopes panel.
/* Name : DELPLMFProcessOccurrence_InconsistentScopeStrategy_ID Mode : Execution Function : Opening run to manage Inconsistent manufactured item - product scope Argument : ThisObject = Manufactured Item occurrence whose reference holds the scope iImplementedProduct (IN) = ObjectType, occurrence of product implemented by the current manufactured item oRerouteStrategy (OUT) = Integer, 1: Reroute Only 2: Replace by new Revision 3: Replace by New 4: xisting 5: Ignore oProposedReference (OUT) = ObjectType, proposed manufactured item for replace */ let PrcsOcc(MfgProcessOccurrence) let PrdOcc(ProductOccurrence) let PrdRef(VPMReference) Let oProposedReference(DELFmiFunctionReference) Let Strategy(Integer) let PrcsScopeList(List) Let Version(String) oProposedReference = NULL Strategy = 3 set PrdOcc= Parameters->GetAttributeObject("iImplementedProduct") if (PrdOcc <> NULL) { Trace(1 , "### Input product not null") set PrdRef = PrdOcc.Reference // Try to find a Mfg Item already scoping the input product PrcsScopeList = GetProcessOfEachScope(PrdRef) if (PrcsScopeList.Size() == 0) { Trace(1 , "### No scope in session") /* OK, no process found in session, looking in the database now */ PrcsScopeList = PrdRef.NavigateFromPartOrPrdToProcessThroughScopeLink() if (PrcsScopeList.Size() <> 0) { Trace(1 , "### Scope found in server") set oProposedReference = PrcsScopeList.GetItem(1) Strategy = 4 } } else { Trace(1 , "### Scope found in session") set oProposedReference = PrcsScopeList.GetItem(1) Strategy = 4 } if (Strategy <> 4) { Version = PrdRef->GetAttributeString("V_version") Trace (1 , "### Version : ",Version) if (Version == "--A") { Strategy = 2 } } } Trace (1 , "### Strategy : ",Strategy) Parameters.SetAttributeInteger("oRerouteStrategy" , Strategy) Parameters.SetAttributeObject("oProposedReference" , oProposedReference) |