The Presentation Layer: Forms and Fields

The presentation layer allows you to interact with the visual elements of your application. You can arrange forms and fields on the page. Forms contain fields, which allow you to display data to or gather information from users. You can also choose to hide or show certain visual elements, such as the title bar of a form or the displayed label of a field. The presentation layer displays control points with which to add fields and forms. Once a field or form is added, the control point will vary depending on the type of form or field it is used to access.

To toggle the Presentation Layer
On the Block Creator, use the toggles for the layers
Control Points in the Presentation Layer
Add a form Example of form control point for existing form
List Form
Add a field Example of field control point for existing field
Short Text Field
Page in Development Role
No Layers Displayed Presentation Layer Displayed
Control points are shown

Forms

Forms on a webpage take a variety of shapes and sizes, and as such there are a variety of forms types to choose from. The most basic form is a page. Within a page, you can nest other form types including field grids, lists, calendars, and much more.

Fields

Fields are nested inside forms and serve a primary purpose of displaying or capturing information. WorkXpress fields are also able serve more dynamic purposes, such as providing a calendar date picker or displaying information based on an evaluation.

Nesting

The most fundamental form type in WorkXpress is the page]. Every form you create will be presented to your users from somewhere within a page.

A page is part of a class of form types that does not contain any fields directly. Instead, a page contains only other forms. All forms may either contain other forms or fields.

The process of adding a form or a field inside another form is called nesting. Technically, there's no limit to the number of forms or fields you may nest, but you're practically limited by the quality of the resulting interface.

The image below shows an example where Layout B is nested inside of Layout A.

Field Nesting

You'll need to add Fields to your interface to display data. Fields are always nested inside of Layouts.

In this first image, we have nested six fields inside a Field Grid (Layout B from our example above). Fields Grids and other Layout Types are explained later in this lesson.

In this second image, we show three Fields nested inside a List Layout (Layout C). Nesting Fields inside a List Layout actually makes those Fields into column headers for the list that display a range of values for those Fields from your data layer below.

Finally, we take Layouts B and C and nest them back into Layout A. This final image shows the results of nesting Layouts inside other Layouts and of Fields nested inside those Layouts. As you can see, the basic look of an application's interface begins to emerge.

presentation layer.txt · Last modified: 2016/09/14 14:19 (external edit)
Copyright WorkXpress, 2019