6.2 Configuring the <pages> element
The <pages> element allows you to define the layout of the user interface. The layout can be either static or dynamic.
To configure the pages element
- Open the configurable XML file corresponding to the form you want to edit. These are usually located in the Viewpoint home directory. Find the <pages> element.
- To create a page, add a child <page> element within <pages> and give it a unique id.
<pages>
...
<page id="page01">
...
</page>
...
</pages>
- Verify that at least one configured page has the first attribute set to "true".
<page id="page01" first="true">
- Locate the <sections> element, which contains a list of sections to display on the page, and configure it according to your needs (for more information, see Configuring the <sections> element).
- Configure the <navigation> element within a page to specify either a dynamic page layout or a static page layout.
- If you are using multiple pages in a dynamic layout, specify which page(s) to load next by adding more <page> elements.
- Configure the <description> element within a page to describe it (for more information, see Configuring the <description> element).
- Configure the <validation> element within the <page>. This will determine if the values on the page are valid before submission.
- Set permissions for pages for which you wish to restrict visibility. To do so, add the permission attribute to the <page> element and set the value to what permission is needed. If the user does not have the specified permission, the page is not displayed.
<pages ui-type="dynamic">
<page id="page01" first="true"></page>
<page id="page02"></page>
<page id="page03" permission="advancevpc"></page>
</pages>
"page03" is viewable only by users with the "advancedvpc" permission.
This section contains these topics: