Propagate Attribute Value (PPRSpreadsheetAttributeValuePropagation_ID)

An opening ID is an entry point used to customize business logic. Propagate Attribute Value specifies the opening ID run to propagate attribute value modification.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

The table below provides you with information related to the definition of the opening ID.

Definition Description
PLM Opening ID PPRSpreadsheetAttributeValuePropagation _ID
Customization Intent Execution
Execution Context Client

Input Objects

Input objects must be of the following type:

ThisObject: item, system, or operation reference.

Context Object Parameters

Parameter Name Type Read or Write Comments
AttributeID String Read Attribute ID on which to modify the attribute value.
AttributeValueString String Read Attribute value in units of a given magnitude in dictionary.
AttrRealValue Real Read Attribute value in units of a given magnitude in dictionary.
AttributeValueMKS Real Read Attribute value in MKS.
Message String Write

Sample

/* ----------------- */
/* Declare Variables */
/* ----------------- */
Let strAttributeValue(String)
Let strAttributeID(String)
Let Value(Real)
Let AttributeRealValue(Real)
Let AttributeMKSValue(Real)
Let ItemReference(DELFmiFunctionReference)
Let ReturnMessage(String)
Let propagatedStatus(Integer)

ItemReference = ThisObject
strAttributeID = Parameters->GetAttributeString("AttributeID")
strAttributeValue = Parameters->GetAttributeString("AttributeValueString")
AttributeRealValue = Parameters->GetAttributeReal("AttributeValueReal")
AttributeMKSValue = Parameters->GetAttributeReal("AttributeValueMKS")

if  (ItemReference <> NULL) 
{
	if (strAttributeID == "V_description")
	{     				
		strAttributeValue = "YESTESTED"
		ItemReference.SetAttributeString(strAttributeID,strAttributeValue)	
		ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "ValuePropagationSucceeded")
		propagatedStatus = 1
	}
	else if (strAttributeID == "V_DiameterOfFeature"  OR strAttributeID == "V_DepthOfFeature")
	{	
		ItemReference.SetAttributeReal(strAttributeID,AttributeMKSValue)
		ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "ValuePropagationSucceeded")
		propagatedStatus = 1
	}
	else
	{
		ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "NoRulesDefinedPropagation")
		propagatedStatus = 0
	}
}
else
{
 	ReturnMessage = BuildMessageNLS("DELVidCtlReportManager", "NoRulesDefinedPropagation")	
	propagatedStatus = 0
}

Parameters.SetAttributeString("Message",ReturnMessage)
Parameters.SetAttributeInteger("Severity" , propagatedStatus)