Apps and development tools - Basic App Kit

View reference

<view>

Description:

A view is defined by XML. The format in general is

<view {view-attributes}>

{document selection (optional): search, select, filter}

{order-by}

{group-change (optional)}
{conditions (optional)}

{columns (mandatory}

</view>

Valid under tags: <views>
Subtags: <query>
<groupchange>
<search>
<col>
<param>
<orderby>
<filter>
<select>
<condition>
Attributes:

selectable="true|false"

Specifies if markers are rendered to select entries in the view
Default: true

title="<some title">

Only used if multiple views are defined. The title is displayed as button-selector in the storage header.

type="list | custom"

Defines if the view entries are rendered as list (default) or if a custom TML is used to render entries. If custom is used you have to add the attribute "tml" to specify the TML used to render entries.
Default: list

tml="<name of a TML>"

Only used if type="custom" (see above).

pagesize="<number of entries per page">

Default: 25

query-type="hql | lucene | custom"

Default: hql

open="document | dialog | fireevent | none"

Specifies how to open a document when a view row is clicked.

  • document: opens the document in a new page (the default)
  • dialog: opens the document in a modal dialog
  • fireevent: fires an event "open-document" with parameter "key" (the content key)
  • none: do nothing

Default: document

mode="view | edit"

Specifies id the dialog is opened in view- or edit mode.