Difference between revisions of "Page Center Section Attributes"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
| Line 30: | Line 30: | ||
{| 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"|[[Section Header#Hide header|Hide header]]||Hide section header at runtime(True | False) | + | |valign="top"|[[Section Header#Hide header|Hide header]]||Hide section header at runtime (True | False) |
| + | |valign="top"|hideHeaderAtRuntime||valign="top"|Boolean | ||
|- | |- | ||
|} | |} | ||
Revision as of 05:22, 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 | 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 | 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 |