Stage 8 of 17
Build all 9 screens of the DToDLab012-SupplierContracts Canvas Power App. Detailed build steps, formulas, and test for every screen.
App OnStart — Global Variables
App OnStart
Collections vs Direct Queries
Dashboard (scrDashboard)
First screen. KPI cards and galleries for expiring contracts, critical risks, and overdue actions.
Build Steps
Formulas
KPI 1 — Contracts expiring in 30 days
KPI 2 — Open critical risks
KPI 3 — Overdue actions
KPI 4 — Contracts under review
Expiring contracts gallery Items
Critical risks gallery Items
Overdue actions gallery Items
Test
Verify all 4 KPI cards show non-zero values (using the sample data from Stage 5). Verify CON-012 appears in the expiring contracts gallery. Verify RSK-001 appears in the critical risks gallery.
Suppliers (scrSuppliers)
Filterable list of all suppliers.
Build Steps
Formulas
Gallery Items
Test
Search for 'Cloud'. Verify CloudCore Ltd and DataVault Security appear. Filter by Category = IT. Verify only IT suppliers appear.
Supplier Details (scrSupplierDetails)
Full details for a selected supplier.
Build Steps
Formulas
Linked contracts
Open risks
Test
Select CloudCore Ltd from the Suppliers screen. Verify CON-001, CON-002, CON-012 appear in linked contracts. Verify RSK-001 and RSK-003 appear in open risks.
Contracts (scrContracts)
Filterable list of all contracts with expiry highlighting.
Build Steps
Formulas
DaysToExpiry (add as a calculated label in the gallery)
DaysToExpiry colour
AnnualValue formatted
Test
Verify CON-012 (Terminating, end date 31 Dec 2026) shows a red DaysToExpiry. Verify the total annual value of all contracts is visible when you add up the gallery rows.
Contract Details (scrContractDetails)
Full contract details with tabbed sections for Services, Reviews, Risks, and Actions.
Build Steps
Formulas
NoticePeriodDeadline
Tab visibility (Services gallery)
Add Review button OnSelect
Test
Select CON-001. Verify the NoticePeriodDeadline is calculated correctly (EndDate minus NoticePeriodDays). Switch between tabs. Verify each tab shows the correct records.
Reviews (scrReviews)
List of all reviews and new review form.
Build Steps
Formulas
Auto-populate Supplier from Contract selection
Outcome badge colour
Test
Create a new review for CON-004 (Meridian Manchester). Select Outcome = Renegotiate. Verify the review appears in the Reviews gallery and on the Contract Details screen for CON-004.
Risks (scrRisks)
List of all risks sorted by rating, with new risk form.
Build Steps
Formulas
Gallery sort (Critical first)
RiskRating badge colour
Test
Verify RSK-001 (Critical) appears at the top of the list. Create a new risk with Likelihood = High, Impact = High. After the flow runs, verify RiskRating = Critical.
Actions (scrActions)
List of all actions with overdue highlighting.
Build Steps
Formulas
Overdue DueDate colour
Mark Complete
Test
Verify ACT-003 (due 31 Dec 2026) shows a red due date. Mark ACT-009 as Complete. Verify the status updates and the action disappears from the open actions gallery.
New / Edit Supplier and Contract forms
Forms for creating and editing supplier and contract records.
Build Steps
Formulas
Supplier save with validation
Test
Create a new supplier. Leave the name blank and attempt to save. Verify the error message appears. Enter a valid name and save. Verify the supplier appears in the Suppliers gallery.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.