Skip to main content

Create the Forms and Menus for the Client Login

Last updated 10/01/2023

This chapter will explain how to create the forms and menus for the Client login.

Create the Restaurants Form

1. Select Forms in the menu.

2. Click the New Form Wizard button in the list app bar.

3. Click the lookup icon in the Main Table field and select Restaurant.


info
Another Restaurant form is being created, as this will be used when a client logs into the system.

4. Click the Cancel button in the Action ID field and type RestaurantsClient.

5. Click the lookup icon in the Parent Menu field and select 20000Client.

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

Add the Restaurants Form
Figure 1 - Add the Restaurants form


Create the Orders Form

1. Click the New Form Wizard button in the list app bar.

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

3. Click the Cancel button in the Action ID field and type OrdersClient.

4. Click the lookup icon in the Parent Menu field and select Restaurants.

5. Click the Add Pages button.

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

7. Click the lookup icon in the Action field and select Items.

8. Type Items in the Caption field.

9. Click the Add Pages button.

10. Type Payments in the Caption field.

11. Click the Next button.

Add the Orders Form
Figure 2 - Add the Orders form

12. Click the Remove Form Field button for the Delivery Address, Sub Total, Discount Code, GST, Total, and Completed records.

Remove Form Field Buttons
Figure 3 - Remove Form Field buttons

13. Click the Required checkbox for the Invoice Address field.

14. Click the Required checkbox for the Date record.

15. Click the List checkbox for the Date record.

16. Click the Required checkbox for the OrderNumber record.

17. Click the List checkbox for the OrderNumber record.

18. Click the Payments tab.

Configure the Fields and Select the Payments Tab
Figure 4 - Configure the fields and select the Payments tab

19. Click the Remove Form Field button for the Restaurant, Invoice Address, Date, Order Number, and Completed records.

20. Click the Required checkbox for the Delivery Address record.

21. Click the List checkbox for the Delivery Address record.

22. Click the Required checkbox for Sub Total record.

23. Click the List checkbox for the Sub Total record.

24. Click the Required checkbox for the Total record.

25. Click the List checkbox for the Total record.

26. Click the Save button in the Form Wizard App bar.

Configure the Fields and Save the Orders Form
Figure 5 - Configure the fields and save the Orders form


Edit the Orders Form


info
The OrdersClient form needs to be edited to attach the Billing Address and Shipping Address lookup queries.

1. Select the OrdersClient record in the list.

2. Click the Pages tab.

Edit the OrdersClient Record
Figure 6 - Edit the OrdersClient record

3. Select the General record.

General Record
Figure 7 - General record

4. Click the Fields tab.

Fields Tab
Figure 8 - Fields tab

5. Select the Invoice Address record.

Invoice Address Record
Figure 9 - Invoice Address record

6. Either click the Edit button in the form app bar, or click directly in the Reference Form field.

7. Click the Cancel button in the Reference Form field.

8. Click the lookup icon in the Display Type field and select _LookupQuery.

9. Click the lookup icon in the Lookup Query field and select BillingAddress.

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

Edit the Invoice Address Record
Figure 10 - Edit the Invoice Address record

11. Click the Cancel button in the form app bar above the list.

Cancel Button
Figure 11 - Cancel button

12. Select the Payments record.

Payments Record
Figure 12 - Payments record

13. Click the Fields tab.

Fields Tab
Figure 13 - Fields tab

14. Select the Delivery Address record.

Delivery Address Record
Figure 14 - Delivery Address record

15. Either click the Edit button in the form app bar, or click directly in the Reference Form field.

16. Click the Cancel button in the Reference Form field.

17. Click the lookup icon in the Display Type field and select _LookupQuery.

18. Click the lookup icon in the Lookup Query field and select ShippingAddress.

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

Edit the Delivery Address Record
Figure 15 - Edit the Delivery Address record

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

Save the OrdersClient Form
Figure 16 - Save the OrdersClient form


Reorder Menu Items for the Client Menu


info
The Client menu has an ordering system starting with 20000.

Edit the Restaurants Menu Item

1. Select Menus in the menu.

2. Select the Restaurants record in the list.

3. Either click the Edit button in the form app bar, or click directly in the Menu ID field and type 20100 before Restaurants.

4. Click the Cancel button in the Menu Order field and type 20100.

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

Edit the Restaurants Menu Item
Figure 17 - Edit the Restaurants menu item


Edit the Orders Menu Item

1. Select the Orders record in the list.

2. Either click the Edit button in the form app bar, or click directly in the Menu ID field and type 20110 before Orders.

3. Click the Cancel button in the Menu Order field and type 20110.

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

Edit the Orders Menu Item
Figure 18 - Edit the Orders menu item