%ZEN.Auxiliary.condition
deprecated class %ZEN.Auxiliary.condition extends %ZEN.Component.object
Defines a style-condition for a %ZEN.Component.tablePane.A %ZEN.Component.tablePane may define one or more conditions. Each condition is evaluated when the table is displayed and provides a way to change the style of rows or cells within the table based on the data values within a given row.
Each condition consists of:
- colName - The name of the column in the table that provides the value to test.
- value - The value to test against (a literal or a reference to another column value)
- predicate - The comparison operator to use for the test.
- cellStyle - The CSS style to apply to the target cell if the condition is true.
- rowStyle - The CSS style to apply to the current row if the condition is true.
Property Inventory
Properties
property cellStyle as %ZEN.Datatype.style;
Style to apply to cell if condition is true.
This is a CSS style string: e.g., "color: red;"
This is a CSS style string: e.g., "color: red;"
Property methods: cellStyleDisplayToLogical(), cellStyleGet(), cellStyleIsValid(), cellStyleLogicalToDisplay(), cellStyleLogicalToOdbc(), cellStyleNormalize(), cellStyleSet()
property colName as %ZEN.Datatype.string (ZENEXPRESSION = 1);
Name of a column within the table that this condition applies to.
Property methods: colNameDisplayToLogical(), colNameGet(), colNameIsValid(), colNameLogicalToDisplay(), colNameLogicalToOdbc(), colNameNormalize(), colNameSet()
property predicate as %ZEN.Datatype.string (VALUELIST = ",GT,EQ,LT,NEQ,GTEQ,LTEQ,EXTEQ,STARTSWITH,CONTAINS") [ InitialExpression = "EQ" ];
The comparison operator used to compare the value of the colName
column with value.
This is one of the following:
This is one of the following:
- GT - Greater than
- EQ - Equal to
- LT - Less than
- NEQ - Not equal to
- GTEQ - Greater than or equal to
- LTEQ - Less than or equal to
- EXTEQ - File extension (text after last ".") equal to
- CONTAINS - Contains
- STARTSWITH - Starts with
Property methods: predicateDisplayToLogical(), predicateGet(), predicateIsValid(), predicateLogicalToDisplay(), predicateLogicalToOdbc(), predicateNormalize(), predicateSet()
property rowStyle as %ZEN.Datatype.style;
Style to apply to row if condition is true.
This is a CSS style string: e.g., "color: red;"
This is a CSS style string: e.g., "color: red;"
Property methods: rowStyleDisplayToLogical(), rowStyleGet(), rowStyleIsValid(), rowStyleLogicalToDisplay(), rowStyleLogicalToOdbc(), rowStyleNormalize(), rowStyleSet()
property targetCol as %ZEN.Datatype.string;
Optional.
The name of the column to apply CellStyle to.
If this is not provided, then the column specified by colName is used as the target.
Property methods: targetColDisplayToLogical(), targetColGet(), targetColIsValid(), targetColLogicalToDisplay(), targetColLogicalToOdbc(), targetColNormalize(), targetColSet()
property value as %ZEN.Datatype.string (ZENEXPRESSION = 1);
Literal value that is compared against column value
Note: if the value of value is enclosed in {}, then it refers to a column of that name within the table. For example, "{PatientName}", will resolve to the value of the PatientName column within the table.
Note: if the value of value is enclosed in {}, then it refers to a column of that name within the table. For example, "{PatientName}", will resolve to the value of the PatientName column within the table.
Property methods: valueDisplayToLogical(), valueGet(), valueIsValid(), valueLogicalToDisplay(), valueLogicalToOdbc(), valueNormalize(), valueSet()
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- aux
- composite
- id
- index
- name
- onupdate
- parent
- tuple
- visible
- window
Inherited Methods
- %AddToSaveSet()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawHTML()
- %DrawJSStrings()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetEventHandlers()
- %GetParameter()
- %GetXMLName()
- %IsA()
- %IsModified()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnDrawObjectProperties()
- %OnObjectSynch()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveFromSaveSet()
- %Self()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- findElement()
- fireOnUpdateEvent()
- getProperty()
- getSettings()
- getType()
- invokeSuper()
- isOfType()
- makeId()
- onCreate()
- onDelete()
- onSerialize()
- onloadHandler()
- onunloadHandler()
- onupdateHandler()
- render()
- renderContents()
- renderSVG()
- setProperty()