Getting Started Part 3

From Lianjapedia
Revision as of 10:17, 29 May 2014 by Yvonne.milne (Talk | contribs)

Jump to: navigation, search

See Also

Watch the video

Lea ésto en español

Extending your first App

Adding a new page

File:Gs3 1.png
Add Another Page


Now let's spice up the app by building an additional page that provides information about employees.

Create a new blank page by clicking on the Page icon in the Form tools. If you get a blank Form section created for you by default with the page - this is determined by the App Settings (Settings at the bottom of the Modebar) - click on the trash can icon in the section header to remove it, as we do not need it.


Image Strips

File:Gs3 2.png
Add an Image Strip Section


Now click on the Sections icon in the Form tools and select the Image Strip.


Populating an Image Strip

File:Gs3 3.png
Populate Image Strip


Now click on the employees table in the Tables panel, then click on the photograph field and drag it into the Image Strip section that you created in the previous step.

You can also just drag an image object field directly onto an empty area on a Page and an Image Strip section will be created and populated.


Add an additional form section

File:Gs3 4.png
Populate Employee Form


Now click Sections in the Form tools and select Form. A new form section will be added to the page. Now click on the employees table as shown below and drag it into the new section that you have just created (or just drag the table onto an empty area of the Page).


Customizing form section fields

File:Gs3 5.png
Field Caption


The caption for the fields in the form section can be customized by moving the mouse cursor over the caption and clicking the edit icon. If you double-click the caption, the Field's Attributes dialog will open, allowing you to modify any of its attributes.


File:Gs3 6.png
Remove Field


You can remove fields you don't want to be visible by clicking the delete icon, which is then displayed.


Dividers


Click and drag the blue handle at the center of the bottom edge of the selected section to resize it. Fields in a Form section can be clicked on and dragged around to change the display ordering. You can also add subtitles, horizontal separators, column dividers or spacers to the section by clicking on the Dividers icon in the Form tools. Once the subtitle is displayed in the form section you can drag it around into a suitable position.


Subtitles are horizontal captions that can be placed anywhere in the form. Column Dividers are horizontal captions at the top of a vertical column. Horizontal Separators display as a horizontal line, whereas Spacers are used to provide blank space between Fields or other controls.

Customizing Dividers

File:Gs3 8.png
Subtitle and Column Divider


Add a Subtitle and a Column Divider and edit their captions as shown below.


File:Gs3 9.png
Subtitle Attributes


Like Fields, you click on a Divider's edit icon to modify the caption or to access the delete icon and double-click the caption to display the full attributes dialog.


Webview section

File:Gs3 10.png
Webview Section


Now drag the employee Notes field onto the Page. By default, the variable length (memo) Notes field is displayed in a Webview Section.

Note that Webviews allow any web content to be rendered in a section.

The URI specified may contain references to the active data records of other sections.

To reference data in the URI use curly braces e.g. {CUSTOMERS.NAME}. This allows web content to be related to database data.


Customizing sections

File:Gs3 11.png
Section Attributes


You can customize the appearance of sections using the Section Attributes dialog by double-clicking on the section header or clicking the cog icon. Set the caption for each of the three sections.


Relating Image Strip sections

File:Gs3 12.png
Relate Image Strip


Now relate the Image Strip section (multiple employees records) to the Form section (details for individual employees records) and the Form section to the Webview section (employee notes).


File:Gs3 13.png
Employees Desktop App View


Take another look at your App in Desktop App View.