To Set a Value to an Attribute in the Spreadsheet Editor (DELSSESetCustomizedAttributeValue_ID)

An opening ID is an entry point used to customize business logic. To Set a Value to an Attribute in the Spreadsheet Editor specifies the opening ID run to add a value to an attribute in the Spread Sheet editor.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

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

PLM Opening ID: DELSSESetCustomizedAttributeValue_ID
Customization intent: Execution
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Item or system
  • Parameters: Corresponds to the context object.

Context Object Parameters

Parameter NameTypeRead/WriteComments
AttributesKeysList Read Identifier of the attribute to modify.
AttributesValuesListRead Values of the attribute to modify.

Sample

The following sample shows how to add a value to an attribute in the spreadsheet editor.

/* -------------------------------------------------------------------------*/
/* Variables declaration                                                    */
/* -------------------------------------------------------------------------*/
/* ---- input ---- */
Let AttributeKey(String)
Let AttributeValue(String)

if (true == Parameters.HasAttribute("AttributeKey") and true == Parameters.HasAttribute("AttributeValue"))
{
	Set AttributeKey = Parameters.GetAttributeString("AttributeKey")
	Set AttributeValue = Parameters.GetAttributeString("AttributeValue")

	 if (AttributeKey == "AvailableAttribute")
	{
		SetMyAttributeWithMyMethod(AttributeKey, AttributeValue)
	}
	else
	{
		Parameters.Severity = 2
		Parameters.Message = "Unknown attribute name"
	}
	
}