|
Condition | | (Required) An expression that evaluates to a value of True or False. Expressions should be in JavaScript (recommended) or VBScript syntax.
For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript.
Typically, you would compare values using a token, such as "@Data.value~ < 0" or "@Session.ShowCol1~=='true'". Elements are removed when the Condition evaluates to False.
Use quotes when working with strings:
"@Data.myColumn~" == "SomeValue"
If your data token may have a double quote inside of it, you should use single quotes:
'@Data.myColumn~' == 'SomeValue'
String valued data tokens with single and double quotes inside are not supported by the condition attribute. |
ErrorResult | | ErrorResult sets the value that is used whenever the Condition or script formula fails because of an error.
For ConditionFilters, the default is "False". For CalculatedColumn and ExtraCrosstabCalculatedColum elements, the default is blank. Otherwise, the default is "???".
Label's Caption attributes can have a script formula by making the first character the equals sign: "=". |
ID | | The ID attribute is a pervasive attribute that uniquely identifies an element within a definition file. The ID needs to be a unique value within the definition. |
IncludeCondition | | An expression that evaluates to a value of True or False. If the expression is blank, or evaluates to true the element is processed. If the expression evaluates to false, the element is skipped.
Expressions should be in VBScript or JavaScript syntax. For .NET versions, the scripting language can be set in the _settings.lgx General element. For Java versions, the scripting language is always JavaScript.
Typically, you would compare values using an operator, such as "@Session.value~ < 0".
Use quotes when working with strings:
"@Session.myValue~" == "SomeValue"
|