Difference between revisions of "Page Center Section Attributes"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 15: | Line 15: | ||
{| class="wikitable" width="100%" | {| class="wikitable" width="100%" | ||
!width="20%"|Attribute | !width="20%"|Attribute | ||
− | !width=" | + | !width="50%"|Description |
+ | !width="20%"|Name | ||
+ | !width="10%"|Type | ||
|- | |- | ||
|valign="top"|[[Details Attributes#Name|Name]]||The name for this section (unique to the page) | |valign="top"|[[Details Attributes#Name|Name]]||The name for this section (unique to the page) | ||
+ | |valign="top"|id||valign="top"|Character | ||
|- | |- | ||
|valign="top"|[[MetaTypes|Meta types]]||A comma separated list of metatype names | |valign="top"|[[MetaTypes|Meta types]]||A comma separated list of metatype names | ||
+ | |valign="top"|metatypes||valign="top"|Character | ||
|- | |- | ||
|valign="top"|[[Details Attributes#Type|Type]]||The type of section: pagecenter (readonly) | |valign="top"|[[Details Attributes#Type|Type]]||The type of section: pagecenter (readonly) | ||
+ | |valign="top"|type||valign="top"|Character | ||
|- | |- | ||
|valign="top"|[[Details Attributes#Caption|Caption]]||The section caption displayed in the section header | |valign="top"|[[Details Attributes#Caption|Caption]]||The section caption displayed in the section header | ||
+ | |valign="top"|title||valign="top"|Character | ||
|- | |- | ||
|} | |} |
Revision as of 06:46, 6 July 2016
Contents
Getting and Setting Attributes
The setAttribute(name, value) method can be used to set the value of an Attribute:
Lianja.get("pageid.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("pageid.sectionid").getAttribute("title")
Note: the shortened form getAttr(name) is also available.
Details
Attribute | Description | Name | Type |
---|---|---|---|
Name | The name for this section (unique to the page) | id | Character |
Meta types | A comma separated list of metatype names | metatypes | Character |
Type | The type of section: pagecenter (readonly) | type | Character |
Caption | The section caption displayed in the section header | title | Character |
Header
Attribute | Description | Name | Type |
---|---|---|---|
Hide header | Hide section header at runtime (True | False) | hideHeaderAtRuntime | Boolean |
Permissions and Roles
Attribute | Description | Name | Type |
---|---|---|---|
Create roles | A comma separated list of roles that can perform create operations on data in the section. | permcreate | Character |
Read roles | A comma separated list of roles that can read (and view) the section. | permRead | Character |
Update roles | A comma separated list of roles that can perform update operations on data in the section. | permUpdate | Character |
Delete roles | A comma separated list of roles that can perform delete operations on data in the section. | permDelete | Character |
UI Presentation Rules
Attribute | Description | Name | Type |
---|---|---|---|
Desktop | Include this section in a Desktop client (True | False). | desktopUI | Boolean |
Web | Include this section in a Web client (True | False). | webUI | Boolean |
Tablet | Include this section in a Tablet client (True | False). | tabletUI | Boolean |
Phone | Include this section in a Phone client (True | False). | mobileUI | Boolean |
UI States | UI states that affect this section. Specify multiple states as a comma separated list. | state | Character |
Initial UI state | The initial UI state for this section. This will be applied to the section and all its fields and gadgets. | uiStateInit | Character |
Readonly when | Section is readonly at runtime if specified expression evaluates to true. | readonlyWhen | Character |
Visible when | Section is visible at runtime if specified expression evaluates to true. | visibleWhen | Character |
Display orientation | Display depending on mobile device orientation for Tablets and Phones. (Always | Portrait | Landscape) | displayOrientation | Character |
Apply rules on change | Apply UI presentation rules (Visible when and Readonly when) when data is changed interactively or when navigating records (True | False). | applyRulesOnChange | Boolean |
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) | applyRulesOnParentChange | Boolean |