Page Center Section Attributes

From Lianjapedia
Revision as of 06:17, 5 July 2016 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

Getting and Setting Attributes

The setAttribute(name, value) method can be used to set the value of an Attribute:

Lianja.get("sectionid").setAttribute("title","Section1")

Note: the shortened form setAttr(name,value) is also available.

The getAttribute(name) method can be used to get the value of an Attribute:

cTitle = Lianja.get("sectionid").getAttribute("title")

Note: the shortened form getAttr(name) is also available.

Details

Attribute Description
Name The name for this section (unique to the page)
Meta types A comma separated list of metatype names
Type The type of section: pagecenter (readonly)
Caption The section caption displayed in the section header

Header

Attribute Description
Hide header Hide section header at runtime(True | False)

Permissions and Roles

Attribute Description
Create roles A comma separated list of roles that can perform create operations on data in the section
Read roles A comma separated list of roles that can read (and view) the section
Update roles A comma separated list of roles that can perform update operations on data in the section
Delete roles A comma separated list of roles that can perform delete operations on data in the section

UI Presentation Rules

Attribute Description
Desktop Include this section in a Desktop client (True | False).
Web Include this section in a Web client (True | False).
Tablet Include this section in a Tablet client (True | False).
Phone Include this section in a Phone client (True | False).
UI States UI states that affect this section. Specify multiple states as a comma separated list.
Initial UI state The initial UI state for this section. This will be applied to the section and all its fields and gadgets.
Readonly when Section is readonly at runtime if specified expression evaluates to true.
Visible when Section is visible at runtime if specified expression evaluates to true.
Display orientation Display depending on mobile device orientation for Tablets and Phones. (Always | Portrait | Landscape)
Apply rules on change Apply UI presentation rules (Visible when and Readonly when) when data is changed interactively or when navigating records (True | False).
Apply rules on parent change Apply section UI presentation rules (Visible when and Readonly when) when parent data is changed by navigating records (True | False)