<sm:Layout>
The sm:Layout tag is used to arrange multiple UI elements on a screen of the mobile app. The tag can contain the following types of nested tags:
- <sm:Field>
- <sm:ContainerLink>
- <sm:RecordActionLink>
- <sm:Layout>Note:The sm:Layout tags with the Template attribute set to HeaderSimple or HeaderFirstAttachment can include nested sm:Layout tags with
Template="Inline"
. The sm:Layout tags for which the Template attribute is Inline cannot include any nested sm:Layout tags.
For details about the relationships between tag types in the mobile site map, see the diagram in XML Tags.
Attributes
Attribute | Description |
---|---|
Name | The identifier of the line layout, as found in the WSDL schema. |
Template | The template that is used to define the layout. The following values can be used for
this attribute:
|
Examples
TotalAmount
field takes 3/6 of the total width,
the Save
action link takes 1/6, and the Currency
field takes
2/6.<sm:Layout Template="Inline">
<sm:Field Container="ReceiptDetailsExpenseDetails" Name="TotalAmount"
Weight="3"/>
<sm:RecordActionLink Name="Save"/>
<sm:Field Container="ReceiptDetailsExpenseDetails" Name="Currency"
PickerType="Attached" Weight="2"/>
</sm:Layout>
<sm:Layout Name="ReceiptHeader" Template="HeaderSimple">
<sm:Layout Name="ReceiptIdLine" Template="Inline">
<sm:Field Name="ReceiptID" ForceIsDisabled="true"/>
<sm:Field Name="Status" ForceIsDisabled="true"/>
</sm:Layout>
</sm:Layout>