Skip to main content

%ZEN.Component.simpleTablePane

abstract class %ZEN.Component.simpleTablePane extends %ZEN.Component.component, %ZEN.Component.querySource

This component draws an HTML table based on the contents of a query. This can either be a pre-built class query or an SQL statement.
The is a base class that provides the underlying mechanisms used by more complex table panes.

Property Inventory

Method Inventory

Parameters

parameter SYSMODULE = table;
Inherited description: If set, this indicates that this system component should be placed in the given "module". A module is a grouping of components within the same class package that share common include (js or css) files. Note that certain root classes are implicitly placed within the "core" module.
Classes outside of the Zen library should not set this, they should use the MODULE instead.

Properties

property enableToggleSelect as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true and multiSelect is false, then clicking on the selected row un-selects it.
Property methods: enableToggleSelectDisplayToLogical(), enableToggleSelectGet(), enableToggleSelectIsValid(), enableToggleSelectLogicalToDisplay(), enableToggleSelectLogicalToOdbc(), enableToggleSelectLogicalToXSD(), enableToggleSelectNormalize(), enableToggleSelectSet(), enableToggleSelectXSDToLogical()
property initialExecute as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
If true (the default) then the query associated with this tablePane will be executed when the table is first displayed. Otherwise the tablePane will execute the query on demand.
Property methods: initialExecuteDisplayToLogical(), initialExecuteGet(), initialExecuteIsValid(), initialExecuteLogicalToDisplay(), initialExecuteLogicalToOdbc(), initialExecuteLogicalToXSD(), initialExecuteNormalize(), initialExecuteSet(), initialExecuteXSDToLogical()
property multiSelect as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, then the user can select multiple rows within the table. An extra column, containing checkboxes, will be displayed to indicate which rows are selected.
Property methods: multiSelectDisplayToLogical(), multiSelectGet(), multiSelectIsValid(), multiSelectLogicalToDisplay(), multiSelectLogicalToOdbc(), multiSelectLogicalToXSD(), multiSelectNormalize(), multiSelectSet(), multiSelectXSDToLogical()
property ondblclick as %ZEN.Datatype.eventHandler;
ondblclick event handler: This event is fired when a row is double-clicked.
Property methods: ondblclickDisplayToLogical(), ondblclickGet(), ondblclickIsValid(), ondblclickLogicalToDisplay(), ondblclickLogicalToOdbc(), ondblclickNormalize(), ondblclickSet()
property onmouseoverClass as %ZEN.Datatype.cssClass;
Class to be appended to the class name of the row when the user moves his/her mouse over the row.
Property methods: onmouseoverClassDisplayToLogical(), onmouseoverClassGet(), onmouseoverClassIsValid(), onmouseoverClassLogicalToDisplay(), onmouseoverClassLogicalToOdbc(), onmouseoverClassNormalize(), onmouseoverClassSet()
property onmultiselect as %ZEN.Datatype.eventHandler;
onmultiselect event handler: This event is fired the user changes the set of multiply-selected rows.
Property methods: onmultiselectDisplayToLogical(), onmultiselectGet(), onmultiselectIsValid(), onmultiselectLogicalToDisplay(), onmultiselectLogicalToOdbc(), onmultiselectNormalize(), onmultiselectSet()
property onselectrow as %ZEN.Datatype.eventHandler;
onselectrow event handler: This event is fired when a new row is selected. This event is passed a variable, which, which indicates how the row was selected: "", "click" or "keypress".
Property methods: onselectrowDisplayToLogical(), onselectrowGet(), onselectrowIsValid(), onselectrowLogicalToDisplay(), onselectrowLogicalToOdbc(), onselectrowNormalize(), onselectrowSet()
property onunselectrow as %ZEN.Datatype.eventHandler;
onunselectrow event handler: This event is fired when the currently selected row is unselected.
Property methods: onunselectrowDisplayToLogical(), onunselectrowGet(), onunselectrowIsValid(), onunselectrowLogicalToDisplay(), onunselectrowLogicalToOdbc(), onunselectrowNormalize(), onunselectrowSet()
property rowSelect as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
If true, then the user can select a row within the table.
Property methods: rowSelectDisplayToLogical(), rowSelectGet(), rowSelectIsValid(), rowSelectLogicalToDisplay(), rowSelectLogicalToOdbc(), rowSelectLogicalToXSD(), rowSelectNormalize(), rowSelectSet(), rowSelectXSDToLogical()
property selectedIndex as %ZEN.Datatype.integer [ InitialExpression = -1 ];
Index (row number) of current selected row (0 based).
Property methods: selectedIndexDisplayToLogical(), selectedIndexGet(), selectedIndexIsValid(), selectedIndexLogicalToDisplay(), selectedIndexLogicalToOdbc(), selectedIndexNormalize(), selectedIndexSet()
property selectedRows as %ZEN.Datatype.string (XMLPROJECTION = "none");
For multi-select tables, this is the set of which rows are selected.
The value of this property is a csv-list of values corresponding to which row is selected.
For selected items the list contains the current user-defined logical value for the row (as specified by the valueColumn).
For unselected items the list contains an empty string.
Property methods: selectedRowsDisplayToLogical(), selectedRowsGet(), selectedRowsIsValid(), selectedRowsLogicalToDisplay(), selectedRowsLogicalToOdbc(), selectedRowsNormalize(), selectedRowsSet()
property showRowNumbers as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, then row numbers are displayed.
Property methods: showRowNumbersDisplayToLogical(), showRowNumbersGet(), showRowNumbersIsValid(), showRowNumbersLogicalToDisplay(), showRowNumbersLogicalToOdbc(), showRowNumbersLogicalToXSD(), showRowNumbersNormalize(), showRowNumbersSet(), showRowNumbersXSDToLogical()
property showRowSelector as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
If true, then a column indicating the selected row is displayed.
Property methods: showRowSelectorDisplayToLogical(), showRowSelectorGet(), showRowSelectorIsValid(), showRowSelectorLogicalToDisplay(), showRowSelectorLogicalToOdbc(), showRowSelectorLogicalToXSD(), showRowSelectorNormalize(), showRowSelectorSet(), showRowSelectorXSDToLogical()
property showZebra as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, then display rows using alternating colors.
Property methods: showZebraDisplayToLogical(), showZebraGet(), showZebraIsValid(), showZebraLogicalToDisplay(), showZebraLogicalToOdbc(), showZebraLogicalToXSD(), showZebraNormalize(), showZebraSet(), showZebraXSDToLogical()
property value as %ZEN.Datatype.string (ZENEXPRESSION = 1);
Logical value of current selected row within the table. Do not access this directly; use getProperty('value') instead.
Property methods: valueDisplayToLogical(), valueGet(), valueIsValid(), valueLogicalToDisplay(), valueLogicalToOdbc(), valueNormalize(), valueSet()

Methods

method %DrawHTML()
Draw innerHTML for this component (without enclosing div).
method %DrawTable(pRS As %ResultSet) as %Status
Draw the table.
clientmethod focus() [ Language = javascript ]
Client-side method to input focus to this control. Implemented by subclasses.
final clientmethod getValue() as %String [ Language = javascript ]
Client-side method to return the logical value associated with this table.
clientmethod isRowSelected(row) [ Language = javascript ]
For multi-select table, test if a given row (0-based) is selected.
clientmethod onmouseHandler(row, over) [ Language = javascript ]
Handler for onmouseover and onmouseout events for a given row. The handler only takes action if onmouseoverClass is specified, and adds the value of this property to the current value for the row's class.
clientmethod selectAllMultiRows(flag) [ Language = javascript ]
For multi-select tables, mark all (visible) rows as selected or unselected depending on the value of flag.
clientmethod selectMultiRow(row, flag) [ Language = javascript ]
For multi-select tables, select or unselect the given row (0-based) depending on the value of flag. Updates the corresponding checkbox.
clientmethod selectRow(row, scroll, which) [ Language = javascript ]
Client-side method to select the given row (0-based) in the table. If scroll is true, scroll the new row into view. If which is present, it is passed along to the user event notification.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.
Assume that subclasses that simply wrap HTML controls have named the control 'control' or else have overridden this method.

Inherited Members

Inherited Properties

Inherited Methods

Subclasses

FeedbackOpens in a new tab