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.

<strong>Zen</strong> ControlsAttributevalueListDescriptionComma-separated list of logical values for the . One of these logical valuesbecomes the value whenever the user clicks on the corresponding button. Usethe displayList to provide the corresponding list of choices to display to the user.<strong>Zen</strong> assumes that every value within the set is distinct. If a valueList contains duplicate items,as in:valueList="A,A,A"Then user selections produce unexpected behavior.5.6.5.2 Query AttributesRather than provide a valueList and a displayList, a can indicate a data source for its buttons via an SQL query. offers a number of attributes for this purpose. When you use this technique, the columns returned by the querydetermine what is displayed in the as follows:• If the %ResultSet has one column, the contents of this column are used as both the logical and display values withinthe radioSet.• If the %ResultSet has two (or more) columns, the contents of the first column supply the logical value and the contentsof the second column supply the display values. provides several attributes that support using a query to generate the result set. For details and examples, seethe following sections in the chapter “<strong>Zen</strong> Tables”:• How to use query attributes with :– Data Sources (maxRows)– Specifying an SQL Query (sql)– Referencing a Class Query (queryClass, queryName)• How to provide elements within :– Query Parameters5.6.6 The <strong>Zen</strong> control is a wrapper around the HTML element with some enhancedcapabilities. The <strong>Zen</strong> control has the following attributes:116 <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!