Visual map — Ch.07 · Reports & dashboards
Leave by State report → dashboard widget
Scoped report + dashboard
Administration
Full visual path (all chapters): VISUAL_FROM_SCRATCH_00_16.html
Studio-only from scratch: Build reports in the Reports module wizard — no external tooling.
Also open: Properties + Direct Links · Schema · Studio Create All Objects · Previous: 06 Notifications
How reports and dashboards relate
Part 1 Report groups req_v2 by u_state → Part 2 Dashboard embeds report as widget for hr_admin/manager.
Rule 0 — Before any object (Application + Update Set + Studio)
Repeat these checks before creating or editing any application file. This section is also section 00 Update Set — create the capture set first.
- Application picker — top-right globe / application menu → select HR Leave (
x_786686_hr_leave). Never leave Global selected when creating scoped artifacts. - Update Set — All → System Update Sets → Local Update Sets → New:
After submit: open the record → click Make Current. Direct list: {BASE}/sys_update_set_list.doField Value Name HR Leave – BuildApplication HR Leave State In Progress Description Captures all HR Leave lab artifacts - Open Studio — {BASE}/$studio.do → confirm header shows HR Leave.
If artifacts land in Global scope, delete them and recreate under HR Leave. ACLs and events created globally will not behave correctly for this app.
Verify Update Set: Create a test Script Include in Studio → open HR Leave – Build → Related List Customer Updates shows the new file.
Part 1: Report Wizard — Leave Requests by State
Purpose
Visual report grouping leave requests by state.
Navigation path
Direct URL
Prerequisites
- Part 3: Table — Leave Request with seeded mixed states.
Form fields — Report wizard
| Wizard step | Selection |
|---|---|
| 1 Source type | Table |
| 2 Table | Leave Request [x_786686_hr_leave_req_v2] |
| 3 Report type | Bar chart or Pie chart |
| 4 Configure | Group by: State (u_state), Aggregate: Count |
| 5 Title | Leave Requests by State |
| Application | HR Leave |
Step-by-step create
- Reports → Create New → Table → req_v2.
- Choose Bar or Pie → Group by u_state → Count.
- Title: Leave Requests by State. Application HR Leave.
- Run report → verify segments for draft/submitted/approved.
Verify checklist
- Report renders with correct counts.
Demo / test
Seed 2 draft, 3 submitted, 1 approved → chart reflects counts.
Part 2: Dashboard + Widget
Purpose
HR Leave dashboard with embedded report widget.
Navigation path
Direct URL
Prerequisites
Form fields
| Field | Value |
|---|---|
| Name | HR Leave Dashboard |
| Widget type | Report |
| Report | Leave Requests by State |
| Roles | hr_admin, manager |
Step-by-step create
- Dashboards → New → Name HR Leave Dashboard.
- Add widget → Report → select report from Part 1.
- Share with roles hr_admin, manager. Save dashboard.
Verify checklist
- Dashboard widget displays report.
Demo / test
manager1 opens dashboard → chart visible.
Reports verify checklist
- Report scoped to HR Leave.
- Dashboard shared with manager/hr_admin.