12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Other <strong>Zen</strong> <strong>Components</strong>• pHeaders is a multidimensional array that provides a set of column headers, subscripted by column number. When thedynaView is in “details” mode, this is used to define how many columns of data to display and what the column headersare. For example:// define 3 column headersSet pHeaders(1) = "Name"Set pHeaders(2) = "Size"Set pHeaders(3) = "Date"9.7.2 AttributesThe previous topic described the OnGetViewContents attribute in detail. The following table lists all the attributes.PropertyonchangeDescriptionClient-side JavaScript expression that <strong>Zen</strong> invokes when the current value of the changes. Generally this expression invokes a client-side JavaScriptmethod. This method becomes the “onchange handler” for the .When providing a value for an event handler attribute such as onchange, use doublequotes to enclose the value and single quotes (if needed) within the JavaScriptexpression. For example:The JavaScript expression may contain <strong>Zen</strong> #()# runtime expressions.onclickondblclickOnGetViewContentsonselectrowsselectedIndexviewTypeClient-side JavaScript expression that <strong>Zen</strong> invokes when the user clicks on a nodewithin the .Client-side JavaScript expression that <strong>Zen</strong> invokes when the user double-clicks on anode within the .Name of a server-side callback method that provides the contents of the .For details, see the section “ OnGetViewContents Callback Method.”Client-side JavaScript expression that <strong>Zen</strong> invokes when the user selects an item byeither pressing the Enter key or double-clickingNumber of rows to display when the is in list mode.0-based index of the currently selected node in the . The defaultselectedIndex is –1 (nothing is selected).Specifies how the contents of the should be displayed. Possible valuesare:• "list" — all items are displayed compactly in rows and columns• "details" — each item is displayed as one row within a tableWhen you work with %ZEN.Component.dynaView programmatically, you must also know about the following propertiesof the dynaView class:• Each element provided in the original definition in XData Contents becomes a member ofthe dynaView parameters property, a list collection of %ZEN.Auxiliary.parameter objects. Each acquiresan ordinal position in the parameters collection: 1, 2, 3, etc.250 <strong>Using</strong> <strong>Zen</strong> <strong>Components</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!