Class Reference
%ZEN.Auxiliary.condition
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [USER] >  [%ZEN] >  [Auxiliary] >  [condition]
Private  Storage

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:

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
6


Summary

Properties
%condition %import %includeFiles %page %resource
aux cellStyle colName composite id
index name onupdate parent predicate
rowStyle targetCol tuple value visible
window

Methods
%%OIDGet %AddToSaveSet %Attr %BindExport
%ClassIsLatestVersion %ClassName %ConstructClone %DispatchClassMethod
%DispatchGetModified %DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %DrawHTML %DrawJSStrings
%Eval %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


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;"
• property colName as %ZEN.Datatype.string(ZENEXPRESSION=1);
Name of a column within the table that this condition applies to.
• 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 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 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 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.