Hours Tracker Part 4-Building Forms and Views

The Why

This guide will explain how to create Forms and Views for all tables, as described in the following links: Forms and Views. This is necessary to build the backend MDA manager. Additionally, building out these forms, views and MDA allow us to ensure our data is structured correctly before building our canvas app.

The How

We will go through each table and build a view and a form. Each one of these will then be used in the MDA.

💡 I will be editing the main form for each of these tables. A new form could have been created, but for simplicity sake I went this path.

Project

  1. View
    1. Create a new view called All Projects
    2. Add the Project Name to the View. Then save and publish the form.
  2. Form
    1. Create a new Main Form called Project Main Form
    2. Configure the from as seen below
    3. Save and Publish the form

Team

  1. View
    1. Create a new view called All Teams
    2. Add the Team name to the view.
    3. Save and Publish the Form
  2. Form
    1. Create a new Main Form called Team Main Form
    2. Configure the from as seen below
    3. Save and Publish the form

Hours

  1. View
    1. Create a new view called Hours not Approved
      1. Add the Hours Worked, Hours, User, Project and Lead Verify to the View
      2. Add a filter to the View where Lead Verify equals No
      3. Save and Publish the view
    2. Create a new views called Hours Approved
      1. Add the Hours Worked, Hours, User, Project and Lead Verify to the View
      2. Add a filter to the View where Lead Verify equals Yes
      3. Save and Publish the view
  2. Form
    1. Create a new Main Form called Hours Input
    2. Configure the from as seen below
    3. Save and Publish the form

User

  1. View
    1. Create a new views called Chargeback Hours Users
    2. Add the Full Name, Primary Email, Team, and Role to the View
    3. Filter the Role so that it equals both Lead and Member
    4. Save and Publish the View
  2. Form
    1. From the Forms view input the managed User form if it is not already there.
    2. Open the Form and select Save a copy
    3. Save the new form as the Chargeback Hours User Form
    4. Add a new 2 column tab called Hours
    5. Name the tab on the left Hours Tracker Team and the one on the right Projects
    6. Add the Team and the Role to the Hours Tracker Team tab
    7. In the Projects Tab add a Subgrid
      1. Select Show related records
      2. Select the Projects table
      3. Select the All Projects View
      4. Press Done
    8. Rename the subgrid to Authorized Projects
    9. Save and Publish the form

In the next guide we will go over how to add all these forms and views to our Model Driven Application.

Leave a Reply