Skip to main content

2 - Create Forms

Last updated 28/03/2023

This documentation will explain the forms you will need to create using the new tables you added in the Portfolio application. With these forms, you will see how to position the forms under a parent menu item to understand how Five filters the data for you.
1. Select Visual in the menu.

2. Select Forms in the sub-menu.


Forms Menu Item
Figure 1 - Forms menu item


Add the Buys Form

1. Click the New Form Wizard button.

2. Click the lookup icon in the Main Table field and select Buy.

3. Click the lookup icon in the Parent Menu field and select Portfolios.


info
By making the Portfolios menu item the parent for the Buys record, the Buys menu item will be accessed in the Portfolio application under a selected Portfolio record.


Add the Buys Form
Figure 2 - Add the Buys form


4. Click the Next button.


Next button
Figure 3 - Next button


5. Click the List checkbox for the StockKey field.

6. Click the List checkbox for the TransactionDate field.

7. Click the List checkbox for the Quantity field.

8. Click the List checkbox for the Total field.


Buys Fields
Figure 4 - Buys fields


9. Click the Save button in the Form Wizard app bar.


Save the Buys Form
Figure 5 - Save the Buys form


Add the Sells Form

1. Click the New Form Wizard button.

2. Click the lookup icon in the Main Table field and select Sell.

3. Click the lookup icon in the Parent Menu field and select Portfolios.


Add the Sells Form
Figure 6 - Add the Sells form


4. Click the Next button.


Next Button
Figure 7 - Next button


5. Click the List checkbox for the StockKey field.

6. Click the List checkbox for the TransactionDate field.

7. Click the List checkbox for the Quantity field.

8. Click the List checkbox for the Total field.


Sell Fields
Figure 8 - Sells fields


9. Click the Save button in the Form Wizard app bar.


Save the Sells Form
Figure 9 - Save the Sells form


Add the Allocations Form

1. Click the New Form Wizard button.

2. Click the lookup icon in the Table field and select Allocation.

3. Click the Add Menu Item switch.


Add the Allocations Form
Figure 10 - Add the Allocations form


4. Click the Next button.


Next Button
Figure 11 - Next button


5. Click the List checkbox for the BuyKey field.

6. Click the List checkbox for the Quantity field.


Allocations Fields
Figure 12 - Allocations fields


7. Click the Save button in the Form Wizard app bar.


Save the Allocations Form
Figure 13 - Save the Allocations form


Add the Allocations Page to the Sells Form

1. Select the Sells record in the list.

2. Click the lookup icon in the Page Navigation field and select Continuous.


Continuous Page Navigation
Figure 14 - Continuous page navigation


3. Click the Pages tab.


Pages Tab
Figure 15 - Pages tab


4. Click the Add Pages button.


Add Pages Button
Figure 16 - Add Pages button


5. Type Allocations in the Caption field.

6. Click the lookup icon in the Page Type field and select List.

7. Click the lookup icon in the Action field and select Allocations (Form).


Add the Allocations Page
Figure 17 - Add the Allocations page


8. Click the Save button in the form app bar.


Save the Allocations Page
Figure 18 - Save the Allocations page


9. Click the Save button in the form app bar above the list.


Save the Sells Form
Figure 19 - Save the Sells form


Run the Portfolio Application


tip
This is a good time to run the Portfolio Application to see the changes and what we can improve. The video below shows how the Portfolio application now works.




1. Click the Run button in Five's toolbar.


Run Button
Figure 20 - Run button


Add a Portfolio Record


info
Our themes will look different, the theme on the Portfolio application is available on the Advanced side of the editor in the PortfolioV1.2.fdf and can be copied and pasted into the Portfolio application you are building.


1. Click the Add Item button.

2. Type Growth Portfolio in the Name field.


Add the Growth Portfolio Record
Figure 21 - Add the Growth Portfolio record


3. Click the Save button in the form app bar.


Save the Growth Portfolio Record
Figure 22 - Save the Growth Portfolio record


4. Click the Down button in the form app bar.


Down Button
Figure 23 - Down button



info
You will be positioned on the Buys form. Lets add some test data and see what we can improve!

Test the Buys Form

1. Click the Add Item button.

2. Click the lookup icon in the Stock field and select AEI.


Add a Buys Record
Figure 24 - Add a Buys record


3. Click the calendar icon in the Transaction Date field and select today's date.

4. Click the OK button.


Date Picker
Figure 25 - Date picker


5. Type 100 in the Quantity field.

6. Type .50 in the Price field.

7. Type 10.00 in the Fees field, press Tab.


Problem
The Total field does not automatically calculate the total, this is not ideal! In Five, we can add a function to fix this.

Total Field
Figure 26 - Total field


8. Click the Cancel button in the form app bar.


Cancel Button
Figure 27 - Cancel button