Home > Class Reference > ENSLIB namespace > %ZEN.Auxiliary.condition

%ZEN.Auxiliary.condition

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:

Property Inventory (Including Private)

Properties (Including Private)

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;"
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:
  • 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;"
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.
Property methods: valueDisplayToLogical(), valueGet(), valueIsValid(), valueLogicalToDisplay(), valueLogicalToOdbc(), valueNormalize(), valueSet()

Inherited Members

Inherited Properties (Including Private)

Inherited Methods (Including Private)