Creating landing pages
4 タスク
30 分
シナリオ
MDC offers three membership types: Bronze, Silver, and Gold. The registration cost varies depending on the membership type. Registration requests are routed to the executive manager for approval.
The executive manager can update the membership type and pricing models.
The following table provides the credentials you need to complete the challenge:
| Role | User name | Password |
|---|---|---|
| Admin | admin@deliveryservice | rules |
| Executive Manager | executivemanager@mdc | rules |
詳細なタスク
1 Identify design options
There are two options to implement the given requirement:
- Option 1: Add a landing page on the Executive Manager Portal to add or update the membership types and pricing model.
- Option 2: Delegate the Data Object to the Executive Manager role to add or update the membership types and pricing model.
2 Evaluate design options
The following table outlines the pros and cons of two design options for implementing the given requirement:
| Design | Pros | Cons |
|---|---|---|
| Landing page |
|
|
| Delegate a Data object |
|
|
3 Recommend the best design option
Adding a landing page to the Executive Manager Portal is the recommended approach because it is easy to configure and does not require customization.
Guidelines for using Landing Pages and alternative approaches
Landing pages are ideal when:
- You must provide role-based access to data management functionality.
- Users require intuitive, low-code interfaces for data maintenance.
- You want to use default templates and minimize custom development.
- The data can be displayed in a tabular or tile format effectively.
Consider alternatives when:
- Complex data relationships require custom UI logic.
- You need highly specialized data entry workflows.
- The data structure does not align with a list-based presentation.
- Integration with external systems requires custom API development.
4 Implement solution details
- In the Pega Platform instance for the challenge, enter the following credentials:
- In the User name field, enter admin@deliveryservice.
- In the Password field, enter rules.
- In the header of Dev Studio, click Application: Delivery Service > Definition.
- On the Cases & data tab, in the Data section, search for Membership Type, and then click Add.
- Click Save.
- In the header of Dev Studio, click Dev Studio > App Studio.
- In the navigation pane of App Studio, click Data and then click Membership Type.
- On the Data Model tab of the Membership Type Data Object, click Primary fields.
- In the Primary field configuration dialog box, click Add, and then select the existing fields that you want to make primary.
- Click Add, and then click Submit.
- Click Save.
- On the Data Pages tab of the Membership Type Data Object, click Savable Membership Type, and then click Open in Dev Studio.
- In Dev Studio, set the availability of the D_MembershipTypeSavable Data Page to Available, API.
- Log out and log back in by using the credentials provided in Step 1.
- In App Studio, in the navigation pane, click Data, and then click Membership Type:
- On the Settings tab, click Default data sources.
- In the Default record lookup data page list, select Savable Membership Type.
- Click Save.
- In the navigation pane of App Studio, click Channels.
- In the Current channel interfaces section, click Executive Manager Portal.
- On the Portal page, on the Content tab, click Landing pages.
- In the Landing pages pane, click Add, and then configure the page:
- In the Name field, enter Membership Type.
- In the Template list, select Default page.
- Click Submit.
- In the Edit landing page area, in the Region A section, click Add.
- In the Views field, select Membership Type, and then click Add.
- In the Edit landing page area, in the Region A section, click Membership Type.
- In the Edit view area, in the Data page list, select List Membership Type.
- In the Columns section, click Add, and then enter Primary fields.
- Select the Primary fields checkbox, and then click Add.
- In the Editing section, allow user edits by selecting the Allow edit, delete and create checkbox to enable the create, read, update, and delete (CRUD) operations of records of the Data Object from landing pages.
- In the Landing pages pane, click the back arrow to return to the Main navigation section.
- In the Landing pages section, click Add item to add the newly created Membership Type landing page to the Executive Manager Portal, and then save the configuration details.
- Click Save.