Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
AttributesKeys | List |
Read | Identifier of the attribute to modify. |
AttributesValues | List | Read | 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"
}
}