Practice Lab 3.2 – Views

Scenario

You are a Power Platform functional consultant and have been assigned to the Fabrikam project for the next stage of the project.

In this practice lab, you will be modifying the views for the Fabrikam Environment model-driven apps.

You will be:

  • adding the columns you created in the earlier lab to the view
  • creating a new view for completed Projects
  • adding the funding amount to views
  • editing the lookup view for Outcomes
  • adding find columns to the Outcomes quick find view
  • configuring default view for Project Outcome
  • changing Milestone sub-grid on Project to an editable grid
  • restricting views in the app
  • Enabling Dataverse search

Exercise 1 – Project views

In this exercise, you will make changes to the views for the Project table.

Task 1.1 – Modify the Project public view

In this task, you will perform the following changes to the form:

  • add columns to views
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Click to open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project table.

  7. Under Data experiences, select Views.

  8. Select the Active Projects view, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select the Total Project Funding column to add to the view.

  10. Drag the Total Project Funding column to the left of Project Status.

    Active Projects view.

  11. On the Save and publish drop-down menu, select Save only. Do not navigate away from this page.

Task 1.2 – Create new completed projects view

In this task, you will perform the following changes to the form:

  • create a new view
  • set filter
  • remove column
  1. Select Save As.

  2. Enter Completed Projects for Name.

  3. Select Save.

  4. Select the caret next to the Project Status column and select Filter by.

  5. Select Equals and choose Completed.

  6. Select Apply.

  7. Select the caret next to the Project Status column and select Remove.

    Completed Projects view.

  8. On the Save and publish drop-down menu, select Save only.

  9. Close the view designer.

  10. Select Done.

Exercise 2 – Project Funding views

In this exercise, you will make changes to the views for the Project Funding table.

Task 2.1 – Modify the Project Funding public view

In this task, you will perform the following changes to the form:

  • add columns to views
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Funding table.

  7. Under Data experiences, click on Views.

  8. Select the Active Project Funding view, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Funding Amount column from Table columns to between the Funder and Funding Percentage columns, adding it to the view.

    Project Funding view.

  10. On the Save and publish drop-down menu, select Save only.

  11. Close the view designer.

  12. Select Done.

Exercise 3 – Outcome views

In this exercise, you will make changes to the views for the Outcome table.

Task 3.1 – Modify the Active Outcomes public view

In this task, you will perform the following changes to the form:

  • add the Milestone Status to public view
  • remove the status reason column
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Click to open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, click and expand Tables.

  6. Select the Outcome table.

  7. Under Data experiences, click on Views.

  8. Select the Active Outcomes view, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Outcome Status column to the left of the Owner column in the view.

  10. Select the caret next to the Status Reason column and select Remove.

    Active Outcomes view.

  11. On the Save and publish drop-down menu, select Save only.

  12. Close the view designer.

  13. Select Done.

Task 3.2 – Modify the Outcome lookup view

In this task, you will perform the following changes to the form:

  • change the columns in the lookup view for Outcomes
  1. Select the Outcome Lookup View view, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Select the caret next to the Created On column and select Remove.

  3. Select the Target Aim column to add to the view.

  4. Select the Outcome Status column to add to the view.

    Outcome Lookup view.

  5. On the Save and publish drop-down menu, select Save only.

  6. Close the view designer.

  7. Select Done.

Task 3.3 – Modify the Outcome Quick Find view

In this task, you will perform the following changes to the form:

  • change the find columns in the quick find view
  1. Select the Quick Find Active Outcomes view, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Select the caret next to the Created On column and select Remove.

  3. Select the Target Aim column to add to the view.

  4. Select the Outcome Status column to add to the view.

  5. Select the Estimated Completion Date column to add to the view.

  6. In the Quick Find Active Outcomes pane on the right, select Edit find table columns under Find by.

  7. Choose the following columns and select Apply.

    • Goal
    • Outcome Code
    • Outcome Description
    • Outcome Title
    • Target Aim

    Outcome Quick Find view.

  8. On the Save and publish drop-down menu, select Save only.

  9. Close the view designer.

  10. Select Done.

Exercise 4 – Milestone views

In this exercise, you will make changes to the views for the Milestone table.

Task 4.1 – Modify the Active Milestones public view

In this task, you will perform the following changes to the form:

  • add the Milestone Status to the public view
  • remove the Status Reason column
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Milestone table.

  7. Under Data experiences, select Views.

  8. Select the Active Milestones view, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Drag the Number of Open Tasks column to the right of the Milestone Title column in the view.

  10. Drag the Milestone Status column to the left of the Owner column in the view.

  11. Select the caret next to the Status Reason column and select Remove.

    Active Milestones view.

  12. On the Save and publish drop-down menu, select Save only.

  13. Close the view designer.

  14. Select Done.

Task 4.2 – Modify the My Pending Milestones public view

In this task, you will perform the following changes to the form:

  • add the Milestone Status to the public view
  • remove the Status Reason column
  • edit the filter
  1. Select the My Pending Milestones view, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Drag the Milestone Status column to the right of the Status Reason column in the view.

  3. Select the caret next to the Status Reason column and select Remove.

  4. In the My Pending Milestones pane on the right side, select Edit filters.

  5. In the Edit filters pane, change Status Reason to Milestone Status.

  6. Change the Operator to Does not equal.

  7. Select Completed and Cancelled.

    Edit filters pane.

  8. Select Ok.

  9. On the Save and publish drop-down menu, select Save only.

  10. Close the view designer.

  11. Select Done.

Task 4.3 – Modify the Milestones SubGrid view

In this task, you will perform the following changes to the form:

  • add the Milestone Description to the view
  • add the Milestone Status to the view
  • remove the Status Reason column
  1. Select the Milestones SubGrid view, select the Commands menu (…), and select Edit > Edit in new tab.

  2. Drag the Milestone Description column to the right of the Milestone Title column in the view.

  3. Drag the Milestone Status column to the right of the Status Reason column in the view.

  4. Select the caret next to the Status Reason column and select Remove.

    Milestones SubGrid view.

  5. On the Save and publish drop-down menu, select Save only.

  6. Close the view designer.

  7. Select Done.

Exercise 5 – Project Outcome views

In this exercise, you will make changes to the views for the Project Outcome table.

Task 5.1 – Modify the Active Project Outcomes public view

In this task, you will perform the following changes to the form:

  • Configure the default views created when the table was created
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Outcome table.

  7. Under Data experiences, select Views.

  8. Select the Active Project Outcomes view, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select the caret next to the Created On column and select Remove.

  10. Select the Outcome column to add to the view.

  11. Select the Comments column to add to the view.

  12. Select the Outcome Completed Date column to add to the view.

  13. Select the caret next to the Title column and select Remove.

  14. In the Active Project Outcomes pane on the right side, select Sort by and select Outcome completed date.

  15. Select the up arrow to change the sorting to descending.

    Active Project Outcomes view.

  16. On the Save and publish drop-down menu, select Save only.

  17. Close the view designer.

  18. Select Done.

Task 5.2 – Publish changes

  1. In the Objects pane on the left, select All.

  2. Select Publish all customizations.

Exercise 6 – Editable grid

In this exercise, you will make changes to a sub-grid in the main form for the Project table to make it editable.

Task 6.1 – Modify the Project main form

In this task, you will perform the following changes to the form:

  • change the Milestone sub-grid to be an editable grid
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project table.

  7. Under Data experiences, select Forms.

  8. Select the Information where Form type is Main, select the Commands menu (…), and select Edit > Edit in new tab.

  9. Select Components on the left navigation of the form designer.

  10. Select Get more components.

  11. Select the Power Apps grid control.

    Add Power Apps grid control.

  12. Select Add.

  13. Select the Milestones tab.

  14. Select the Milestones sub-grid.

  15. In the Properties pane on the right, expand Components.

  16. Select + Component.

  17. Select Power Apps grid control.

  18. Select Yes for Enable editing.

  19. Select Yes for Show data type icons.

  20. Select Done.

  21. Select Save and publish.

  22. Close the form designer.

  23. Select Done.

Exercise 7 – Modify model-driven apps

In this exercise, you will be restricting views in model-driven apps.

Task 7.1 – Environmental Project Delivery app

In this task, you will perform the following changes to the app:

  • restrict Project views
  • restrict Milestone views
  • restrict Outcome views
  1. Navigate to the Power Apps Maker portal https://make.powerapps.com.

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Click to open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, select Apps.

  6. Select the Environmental Project Delivery app, select the Commands menu (…), and select Edit > Edit in new tab.

  7. Under Projects in the Pages pane on the left-hand side, select Projects view.

  8. In the Projects pane on the right side, select the ellipsis on the Active Projects view and select Remove.

  9. In the Projects pane on the right side, select the ellipsis on the Inactive Projects view and select Remove.

  10. In the Projects pane on the right side, select the ellipsis on the Projects Subgrid view and select Remove.

    Project views in app.

  11. Select Milestones view from the left Pages pane.

  12. In the Milestones pane on the right side, select the ellipsis on the Inactive Milestones view and select Remove.

  13. In the Milestones pane on the right side, select the ellipsis on the Milestones SubGrid view and select Remove.

  14. In the Pages pane on the left-hand side, select Outcomes view.

  15. In the Outcomes pane on the right side, select the ellipsis on the Inactive Outcomes view and select Remove.

  16. In the Outcomes pane on the right side, select the ellipsis on the Outcomes SubGrid view and select Remove.

  17. Select Save.

  18. Select Publish.

  19. Select Play. Explore the Environmental Project Delivery model-driven app.

  20. Close the app and the app designer tabs.

  21. Select Done.

In this exercise, you will enable Dataverse search for your environment.

The find columns on the quick find views define the searchable fields in the Dataverse search index.

Task 8.1 – Search settings

  1. Navigate to the Power Platform admin center https://aka.ms/ppac

  2. Select Environments from the left navigation pane.

  3. Select the Dev One environment.

  4. Select Settings.

  5. Expand Product.

  6. Select Features.

  7. Verify that Dataverse search is On.

  8. If you made changes, select Save at the bottom.

Task 8.2 – Search index

  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the solution select the Overview page.

    Overview.

  6. Select Manage search index.

    Manages search index on solution.

  7. In the Select tables to index for Dataverse search pane, add the following tables:

    • Outcome
    • Project Funding
    • Resource

    Index tables in solution.

  8. Select Save.

Task 8.3 – Publish changes

  1. Select Publish all customizations.