Difference between revisions of "Getting Started Part 3"

From Lianjapedia
Redirect page
Jump to: navigation, search
(Redirected page to Lianja 5 Getting Started 3)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
#REDIRECT [[Lianja 5 Getting Started 3]]
 +
 
==See Also==
 
==See Also==
[http://videos.lianja.com/video/71411231 Watch the video]
+
[[Getting Started (Video)]]
  
 
[[Introducción Parte 3|Lea ésto en español]]
 
[[Introducción Parte 3|Lea ésto en español]]
 +
 +
[[Getting Started Part 1]]
 +
 +
[[Getting Started Part 2]]
 +
 +
[[Getting Started Part 4]]
  
 
==Extending your first App==
 
==Extending your first App==
  
 
===Adding a new page===
 
===Adding a new page===
 +
[[{{ns:file}}:getstart3_1.png|450px|thumb|left|link={{filepath:getstart3_1.png}}|New Page]]
  
[[{{ns:file}}:gs3_1.png|450px|thumb|left|link={{filepath:gs3_1.png}}|Add Another Page]]
 
  
  
 
Now let's spice up the app by building an additional page that provides information about employees.
 
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.
+
Create a new blank page by clicking on the Page icon in the [[Form Tools]] and selecting '''Blank'''.
 +
 
 +
It will be given the default '''Name''', '''Title''' and '''Caption''' of page''N'' where ''N'' is the next page number.
  
 
<br clear=all>
 
<br clear=all>
  
===Image Strips===
+
===Adding a new form section===
 +
[[{{ns:file}}:getstart3_2.png|450px|thumb|left|link={{filepath:getstart3_2.png}}|Add Employees Form Section]]
  
[[{{ns:file}}:gs3_2.png|450px|thumb|left|link={{filepath:gs3_2.png}}|Add an Image Strip Section]]
 
  
  
Now click on the Sections icon in the Form tools and select the Image Strip.
+
Click on the employees table in the Tables explorer and drag it onto the new Page to create a new Form Section.
  
 
<br clear=all>
 
<br clear=all>
  
===Populating an Image Strip===
+
===Adding an image gadget===
 +
[[{{ns:file}}:getstart3_4.png|450px|thumb|left|link={{filepath:getstart3_4.png}}|Add Image Gadget for Employee Photo]]
  
[[{{ns:file}}:gs3_3.png|450px|thumb|left|link={{filepath: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.
+
Click and drag the blue indicator at the bottom of the Form Section to resize it to a single column.
  
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.
+
Then scroll down to the Photograph column in the Columns explorer, select it and drag it into the Form Section.
 
+
<br clear=all>
+
 
+
===Add an additional form section===
+
 
+
[[{{ns:file}}:gs3_4.png|450px|thumb|left|link={{filepath:gs3_4.png}}|Populate Employee Form]]
+
  
 +
This will automatically add an Image Gadget for the photo column.
  
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).
+
The photo column is a blob (binary large object) previously loaded with an employee photo image file.  
  
 
<br clear=all>
 
<br clear=all>
  
 
===Customizing form section fields===
 
===Customizing form section fields===
 +
[[{{ns:file}}:getstart3_5.png|450px|thumb|left|link={{filepath:getstart3_5.png}}|Formitem Edit Icon]]
  
[[{{ns:file}}:gs3_5.png|450px|thumb|left|link={{filepath: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.
+
 
 +
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.   
  
 
<br clear=all>
 
<br clear=all>
  
[[{{ns:file}}:gs3_6.png|450px|thumb|left|link={{filepath:gs3_6.png}}|Remove Field]]
+
[[{{ns:file}}:getstart3_6.png|450px|thumb|left|link={{filepath:getstart3_6.png}}|Formitem Remove Icon]]
 +
 
  
  
You can remove fields you don't want to be visible by clicking the delete icon, which is then displayed.
+
You can remove fields you don't want to be visible by clicking the Remove icon, which is then displayed.
  
 
<br clear=all>
 
<br clear=all>
Line 64: Line 71:
 
===Dividers===
 
===Dividers===
  
[[{{ns:file}}:gs3_7.png|450px|thumb|left|link={{filepath:gs3_7.png}}|Dividers]]
+
[[{{ns:file}}:getstart3_7.png|450px|thumb|left|link={{filepath:getstart3_7.png}}|Add Subtitle Divider]]
  
  
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.
+
 
 +
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.
  
 
<br clear=all>
 
<br clear=all>
Line 74: Line 86:
  
 
===Customizing Dividers===
 
===Customizing Dividers===
 +
[[{{ns:file}}:getstart3_8.png|450px|thumb|left|link={{filepath:getstart3_8.png}}|Updated Subtitle Caption]]
  
[[{{ns:file}}:gs3_8.png|450px|thumb|left|link={{filepath:gs3_8.png}}|Subtitle and Column Divider]]
 
  
  
Add a Subtitle and a Column Divider and edit their captions as shown below.
 
  
<br clear=all>
+
Add Subtitles and edit their captions as shown.
 
+
[[{{ns:file}}:gs3_9.png|450px|thumb|left|link={{filepath: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.
+
  
 
<br clear=all>
 
<br clear=all>
  
 
===Webview section===
 
===Webview section===
 
+
[[{{ns:file}}:getstart3_9.png|450px|thumb|left|link={{filepath:getstart3_9.png}}|Add Webview Section for Employee Notes]]
[[{{ns:file}}:gs3_10.png|450px|thumb|left|link={{filepath:gs3_10.png}}|Webview Section]]
+
  
  
Line 104: Line 109:
 
<br clear=all>
 
<br clear=all>
  
===Customizing sections===
+
===Customizing the page===
 +
[[{{ns:file}}:getstart3_10.png|450px|thumb|left|link={{filepath:getstart3_10.png}}|Updated Page Title and Caption]]
  
[[{{ns:file}}:gs3_11.png|450px|thumb|left|link={{filepath: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.
+
Make sure the Page Attributes are selected in the App Inspector and update the '''Title''' - the text shown in the Pages menu (click the hamburger icon to display the Pages menu) and the '''Caption''' - the text shown in the Page header.
 +
 
 +
And update the '''Caption''' attribute for the Sections.
  
 
<br clear=all>
 
<br clear=all>
  
===Relating Image Strip sections===
+
[[{{ns:file}}:getstart3_11.png|450px|thumb|left|link={{filepath:getstart3_11.png}}|Page Attribute: Stretch last section]]
  
[[{{ns:file}}:gs3_12.png|450px|thumb|left|link={{filepath: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).
+
For both the Customers and the Employees Pages, set the '''Stretch last section''' attribute to True.
 +
 
 +
This extends the bottom section to fill the page.
 +
 
 +
Note that in Development view the Pages menu can be accessed from the hamburger in the headerbar.
  
 
<br clear=all>
 
<br clear=all>
  
[[{{ns:file}}:gs3_13.png|450px|thumb|left|link={{filepath:gs3_13.png}}|Employees Desktop App View]]
+
===Customizing the image gadget===
 +
[[{{ns:file}}:getstart3_12.png|450px|thumb|left|link={{filepath:getstart3_12.png}}|Image Gadget Attributes: Fixed width and Fixed height]]
  
  
Take another look at your App in Desktop App View.
 
  
 +
Set the '''Fixed width''' and the '''Fixed height''' attributes for the image gadget (400).
 +
 +
<br clear=all>
 +
 +
===Desktop App View===
 +
[[{{ns:file}}:getstart3_13.png|450px|thumb|left|link={{filepath:getstart3_13.png}}|Desktop App View]]
 +
 +
 +
 +
Click the Desktop App View and view your extended App.
 +
<br clear=all>
 +
 +
[[Getting Started Part 4]]
  
  
 
[[Category:Getting Started]]
 
[[Category:Getting Started]]

Latest revision as of 08:46, 6 December 2019