Creating data relationships in Views
4 Tasks
10 mins
Beginner
Pega Platform '23
Data Integration
User Experience
Constellation
English
Scenario
The Mayor of MyTown asks you, the town project manager, to enable residents to report problems they encounter on line so that the necessary work can be performed and approved. To accomplish this task, you need to add the project request type to the town's standard online submission form. You also need to encourage users to add their personal information to their report so they can be contacted should additional information be needed to complete the work. You can accomplish this by adding data relationship fields to the Views for the Steps that gather and display the specific information.
Some Views have been previously configured by a different MyTown developer.
Note: The framework of this challenge uses the Constellation architecture of Pega Platform™. To practice this challenge on the Traditional UI architecture, see the Creating a data relationship version 8.7 challenge.
The following table provides the credentials you need to complete the challenge:
Role | User name | Password |
---|---|---|
Application Developer | author@mytown | pega123! |
Note: Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.
Challenge Walkthrough
Detailed Tasks
1 Create the Request type data reference field in the Report problem Step
- In the Pega instance for the challenge, enter the following credentials:
- In the User name field, enter author@mytown.
- In the Password field, enter pega123!.
- In the App Studio navigation pane, click Case Types > Service Request to display the Service Request Case Life Cycle.
- In the Service Request Case Type, click the Report problem Step to open the contextual property pane on the right.
- In the contextual property pane, click Configure View to add fields to the View.
- Below the Fields section, click Add.
- Click Fields > Create new field to open the Add field dialog box.
- In the Name field, enter Request.
- In the Type list, select Data reference.
- In the Data object list, select Request type.
- In the Options field, select List of records.
- Click Submit to close the Add field configuration window.
- Using the left-side Direction icon, drag the Request row to drop it above the Description (ServiceRequest) field.
2 Configure the properties of the Request field
- To edit the properties of the Request field, click Request.
- In the Input settings section, in the Display as list, select Combo-Box.
- In the Display field list, select Type.
- Click Back to return to the Edit View: Report problem window.
- To the right of Request, click Configure to open the Configure field: Request dialog.
- In the Conditions section, in the Required list, select Always.
- Click Save to dismiss the Configure field: Request dialog.
- Click Submit to finish configuring the Request View properties.
3 Create the Embedded Data field Submitter Information
- Click the Identify submitter Step to open the contextual property pane on the right.
- In the Step properties pane, click Configure View.
- In the Fields section, click Add.
- Click Fields > Create new field to open the Add field dialog box.
- In the Name field, enter Submitter information.
- In the Type list, select Embedded Data.
- In the Data object list, select the Person data object.
- Confirm the radio-button selection is Single record.
- Click Submit.
4 Create the Submitter Information View
- In the Fields section, click Submitter information (Person).
- To the right of Primary Fields, click the Remove icon to delete the Primary Fields row.
- Click Add > Fields.
- Select the Address, First name, Last name, and Phone fields, and then click Add.
- Using the Direction icons, drag the rows in the order of First name, Last name, Address, and Phone.
- Click Submit to finish configuring the Submitter information View.
- Click Save.
Confirm your work
- In the Service Request Case Type, click the Data Model tab to confirm that the Request and Submitter information data relationship fields are displayed.
- Click Save and run.
- In the Report problem Step, confirm that the Request field is required and displays a combo-box that provides the Types: Traffic signal, Pothole, Park maintenance, and Road debris.
- Select Traffic signal, and click Next to advance the Case.
- Click Next to advance past the Identify location View.
- In the Identify submitter Step, confirm that the View has First name, Last name, Address, and Phone fields.
This Challenge is to practice what you learned in the following Module:
Available in the following missions:
If you are having problems with your training, please review the Pega Academy Support FAQs.
Want to help us improve this content?