Difference between revisions of "Page Center Section Attributes"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 39: | Line 39: | ||
{| 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"|[[Users and Roles|Create roles]]||A comma separated list of roles that can perform create operations on data in the section | + | |valign="top"|[[Users and Roles|Create roles]]||A comma separated list of roles that can perform create operations on data in the section. |
+ | |valign="top"|permcreate||Character | ||
|- | |- | ||
− | |valign="top"|[[Users and Roles|Read roles]]||A comma separated list of roles that can read (and view) the section | + | |valign="top"|[[Users and Roles|Read roles]]||A comma separated list of roles that can read (and view) the section. |
+ | |valign="top"|permRead||Character | ||
|- | |- | ||
− | |valign="top"|[[Users and Roles|Update roles]]||A comma separated list of roles that can perform update operations on data in the section | + | |valign="top"|[[Users and Roles|Update roles]]||A comma separated list of roles that can perform update operations on data in the section. |
+ | |valign="top"|permUpdate||Character | ||
|- | |- | ||
− | |valign="top"|[[Users and Roles|Delete roles]]||A comma separated list of roles that can perform delete operations on data in the section | + | |valign="top"|[[Users and Roles|Delete roles]]||A comma separated list of roles that can perform delete operations on data in the section. |
+ | |valign="top"|permDelete||Character | ||
|- | |- | ||
|} | |} |
Revision as of 09:28, 5 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 |
---|---|
Hide header | Hide section header at runtime(True | False) |
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 |
---|---|
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) |