t_LayoutRef_Layout
Layout
Properties
annotation : stringa1 ... aN: empty annotation names; must differ from domain model attribute names
attributes : stringAdditional association paths to retrieve
caption : stringCaption text expression
class : stringDomain class relative to which the layout association paths are specified
code : stringSemantic color code: an association path or a constant, a positive integer or a string name.
description : stringLayout description, including its purpose
factory : stringNew item factory event: <class> <event>|<event>
icon : stringIcon name expression
iconCaption : stringIcon caption expression
image : stringHeader background image, an association or a constant: image:<name>|<absolute image url>. <name> specifies the full image name, either with full directory path or in the default directory.
imageCaption : stringHeader background image caption.
reader : stringCustom read event. [<class>]'<event> <arg1> ... <argN>
Specification: [<class>]'<event> <arg1> ... <argN>
<class> is an optional class symbol. When omitted, the items collection class is used. <event> is a read event symbol. <arg#> is an event argument value which can be either a constant or a scheme expression evaluating to a constant at run-time on the client, using special local variables provided by the framework: this (=controller), :node (=active node), :attributes, :where, :orderBy, :count, :offset, :xlock, or a UI initializer variable.
If arguments are not specified, a default list is supplied by the framework: :attributes :where :orderBy :count :offset :xlock
Examples:
a) Generate a request to 'readList event with default arguments: readList
b) Generate request to readList event with attributes, and orderBy argument values supplied by the framework. readList :attributes :orderBy
c) Generate request to Contact'readDetail with attributes supplied by the framework, and the contact argument calculated using (current-contact) client library function. Contact'readDetail :attributes (current-contact this :node)
In a library: (define (current-contact controller node) ... )
d) Generate request to 'read event with a constant attribute list: read '(lastName firstName) :where :orderBy :count :offset :xlocksize : FormSizeIcon size: m|3x.
Valid values based on“string”. m 3x style : stringAdditional style name. Space separated list of class names.
Adds the class names to the outer div of the element to allow for custom css styling. To load mda portlet specific css rules, place them in mod/app/portlet/<portletName.css>. Replace ':' characters with '.' for namespace elements in the portletName.- Example
mod/app/portlet/mda.CategoryNavigator.css
Content
Sequence of:
t_Controllable_Menu [0..1] - Main menu for the layout.
t_Controllable_Toolbar [0..1] - Main toolbar for the layout.
t_Controllable_Script [0..1] - Script to run during layout initialization
t_Controllable_DataActions [0..1] - The collection of DataActions configured on a Layout.
t_Controllable_UIActions [0..1] - Layout-level UI actions
t_Controllable_ExceptionActions [0..1] - The set of exception actions defined for the layout.
Choice of:
t_Controllable_Composite [1..1] - A container that displays its child views in columns - in the root of a layout.
t_Controllable_Tabs [1..1] - A container that displays its child views in tabs - in the root of a layout.
t_Controllable_Switch [1..1] - A container that displays only one of its child views at a time - in the root of a layout.
Parents
t_Controllable_Menu
Main menu for the layout.t_Controllable_Toolbar
Main toolbar for the layout.t_Controllable_Script
Script to run during layout initializationt_Controllable_DataActions
The collection of DataActions configured on a Layout.t_Controllable_UIActions
Layout-level UI actionst_Controllable_ExceptionActions
The set of exception actions defined for the layout.t_Controllable_Composite
A container that displays its child views in columns - in the root of a layout.t_Controllable_Tabs
A container that displays its child views in tabs - in the root of a layout.t_Controllable_Switch
A container that displays only one of its child views at a time - in the root of a layout.
Parent topic: reuseable-references