Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
AttributesKeys | List | Write | Identifier of the attributes to add. |
AttributesValues | List | Write | Values of the attributes to add. |
AttributesTitles | List | Write | NLS identifier of the attributes to add. |
AttributesEditable | List | Write | Determines whether the attributes are editable or not. |
Sample
The following sample determines the attributes to add in the Spread Sheet editor.
/* -------------------------------------------------------------------------*/
/* Variables declaration */
/* -------------------------------------------------------------------------*/
/* ---- output ---- */
Let AttributesKeys(List)
Let AttributesValues(List)
Let AttributesTitles(List)
Let AttributesEditable(List)
if (true == Parameters.HasAttribute("AttributesKeys") and true == Parameters.HasAttribute("AttributesValues") and true == Parameters.HasAttribute("AttributesTitles") and true == Parameters.HasAttribute("AttributesEditable"))
{
/* Fill list with attributes */
AttributesKeys.Append("MyAttribute")
AttributesValues.Append("My Value")
AttributesTitles.Append("My Attribute Title")
AttributesEditable.Append(true)
/* Set list as output values of the BL */
Parameters.SetAttributeObject("AttributesKeys", AttributesKeys)
Parameters.SetAttributeObject("AttributesValues", AttributesValues)
Parameters.SetAttributeObject("AttributesTitles", AttributesTitles)
Parameters.SetAttributeObject("AttributesEditable", AttributesEditable)
}