If you have a comment on this topic, contact Aptify Documentation. If you want to return to the Aptify Community Site, please click here.

Modifying the Vehicles Form Template Example

Based on the information in the Vehicles entity record, the Baseline Form Template Generator creates the following form for the Vehicles entity:

Generated Vehicles Form
However, based on Motor Loaner's requirements and design specifications, the developer used Aptify's form template tools to modify the Vehicles form to look like this:

Final Vehicles Form

This topic describes the steps the developer followed to change the Vehicles form's appearance from the first figure to the second figure.

  1. Log into Aptify as a user with system administrator privileges.
  2. Create the Vehicle's Rental History list view in the Rental Agreements service. This is a formatted list view with no filters (since filters will be applied at the record level).
  3. Create the Vehicle's Service History list view in the Service Tickets service. This is a formatted list view with no filters (since filters will be applied at the record level).
  4. Modify the Vehicles.Form top-level form template to add a top area by moving the Vehicles.Tab part down 60 pixels. Also, change the default width of the form to 530 and the default height to 313. See Adding a Top Area to a Form for instructions.
  5. Open the Vehicles form.
    • If the top area does not display due to system caching, close and reopen Aptify.
       
  6. Use the Visual Designer to add these fields to the top area of the Vehicles form. See Modifying Field Layout with the Visual Designer for information on using the Visual Designer.
    • VIN: Text field.
    • VehicleStatusID: Link box.
    • VehicleModelID: Link box.
       
  7. Using the Visual Designer, rearrange the three fields in the desired layout and set the Tab Indexes as appropriate. (See About the Aptify Form Template Properties Dialog for information on the Tab Index property.)
  8. Since the Vehicle Status field should only be updated automatically by the system, disable that field's link box and hyperlink by specifying a value of 0 for the LinkBoxEnabled and HyperlinkEnabled input properties within the Visual Designer's Properties dialog, as shown in the figure below.
  9. Save and close Visual Designer for the top area.
  10. Open the Visual Designer for the Vehicles form's General tab.
  11. Delete the three generated controls on the General tab that correspond to the three fields that were just added to the top area.
  12. Rearrange the remaining fields and add a line separator to logically group the related fields together on the tab. Also, set the Tab Indexes as appropriate. (See About the Aptify Form Template Properties Dialog for information on the Tab Index property.)
  13. Exit Visual Designer mode for the General tab.
  14. Right-click within the tab control and select Configure from the menu to open the Configure Tab dialog for the Vehicles form.
  15. Use the Form Template Tab wizard to add a new View tab, named Rental History, to the form. See Using the Form Template Tab Wizard for details. When prompted, specify the Vehicle's Rental History list view from the Rental Agreements service and use the VehicleID as the Related Field. This filters the view results where a rental agreement's VehicleID equals the ID of the currently displayed Vehicles record.  

    Configure New View Tab
  16. After completing the wizard, specify that the modified tab layout should be applied globally to all users.
  17. Load the Rental Activity tab and confirm that the list view displays properly.  

    Rental Activity Tab
  18. Right-click within the tab control and select Configure from the menu to open the Configure Tab dialog for the Vehicles form again.
  19. Use the Form Template Tab wizard to add a second new View tab, named Service History, to the form. See Using the Form Template Tab Wizard for details. When prompted, specify the Vehicle's Service History list view from the Service Tickets service and use the VehicleID as the Related Field. This filters the view results where a service ticket's VehicleID equals the ID of the currently displayed Vehicles record.
  20. After completing the wizard, specify that the modified tab layout should be applied globally to all users.
  21. Load the Service History tab and confirm that the list view displays properly.

     Service History Tab
  22. To prevent these modifications to the form from being overwritten by a future change to the Vehicles entity, save all of the Form Templates in the form's hierarchy as non-generated and specify a rank lower than 100 for the templates. See Mark All Templates for a Form as Non-Generated for details.

Copyright © 2014-2017 Aptify - Confidential and Proprietary