Skip to main content

Displaying list data in Views

3 Tasks

10 mins

Visible to: All users
Beginner
Pega Platform 8.8
User Experience
English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Scenario

The GoGoRoad application presents a list in a table of all available service providers for roadside assistance. The UI consultant wants you to make the following changes to the UI: give the relevant service provider information only, and then configure the on-screen content to accommodate multiple screen sizes. Format the list of providers to display in a non-tabular form by using a layout to organize the presentation of a single item and then embedding the section in a repeating dynamic layout.

The following table provides the credentials you need to complete the challenge:

Role User name Password
Application Developer author@gogoroad 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.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Create the Providers list view

  1. In the Pega instance for the challenge, enter the following credentials:
    1. In the User name field, enter author@gogoroad.
    2. In the Password field, enter pega123!.
  2. In the navigation pane of Dev Studio, click Data types > Service provider to open the Service provider data type.
  3. Click the Views tab.
    Views tab of Service Provider data type
  4. Click Create new view to create a new view.
  5. In the upper left of the New View window, click New View to edit the view name.
  6. Enter Providers list to rename the view.
  7. In the left pane of the window, click Fields.
    The Fields icon on the left pane of the Providers list view.
  8. Hover over the Name field, and then click Add to view.
    Adding the Name field to the Providers list view.
  9. In the Options list, select Read-only.
  10. Repeat step 8 to add the Address field. 
    The Name and Address fields assed to the Providers list view.
  11. Click Submit to close the window.
  12. In the upper-right corner, click Save to save the Providers list view.

2 Create a responsive view

  1. In the navigation pane of Dev Studio, click App to open App Explorer.
  2. In the search field, enter or select GoGo-GoGoRoad-Data-ServiceProvider, and then press the Enter key to display the rules within the specified class.
  3. Expand User Interface > Section.
    App Explorer with GoGoRoad-Data-ServiceProvider selected
  4. Right-click Section, and then click Create.
  5. In the Create Section form, in the Label field, enter Providers List Responsive to name the section.
  6. In the upper-right corner, click Create and open to create the section.
  7. In the Providers List Responsive section, in the right pane, click Change to change the template.
    Change section template button
  8. In the Select a template window, click Inline wrapping.
  9. In the right pane, click the Add icon to add a control.
    Add control to a section
  10. In the Add list, click Action > Button to add the button control.
  11. In the right pane, hover over the Button control, and then click Edit this "Button"
  12. In the Cell Properties window, in the Text field, enter Select provider.
    Cell properties for the Select provider button
  13. Click Submit to dismiss the window.
  14. In the right pane, click the Add icon.
  15. In the Add list, click  Data display > Embedded section. The Section Include Modal dialog box is displayed.
  16. In the Section Include Modal dialog box, in the Section field, enter or select ProvidersList.
    Section include modal for an embedded section
  17. Click Submit to dismiss the dialog box.
  18. In the upper-right corner, click Save to save the responsive view.

3 Add the newly-created view to your application

  1. Create a new Assistance Request case, and then advance to the Select service provider step.
    Tip: Not all locations have nearby service providers. In the Identify location step, in the State field, enter MA to display a list of service providers in Massachusetts, USA.
  2. On the Developer Toolbar, click Live UI.
  3. In the Assistance Request case, click the Service provider section. 
    Select service provider view
    Tip: You can open UI section rules by using the Live UI tool or from the App or Data Explorer. Live UI is best applied for sections that are actively used in the case type.
  4. In the right pane, to the right of SelectServiceProvider_ServiceProvider, click Open in Dev Studio to open the section rule in Dev Studio.
    Open in Dev Studio icon from Live UI
  5. In the section rule, click Structural, and then click and drag a Repeating dynamic layout to the Service provider section.
  6. In the Repeating dynamic layout header, click View properties.
  7. In the Repeating dynamic layout properties window, in the List/Group field, enter or select .ServiceProvider.
    Repeating dynamic layout properties with .Service provider as List/Group
  8. Click Submit to dismiss the window.
  9. In App Explorer , click Options > Refresh App Explorer.
    Refresh App Explorer
  10. Expand User Interface > Section.
  11. Drag and drop the ProvidersListResponsive section from App Explorer to the Repeating Dynamic Layout. 
    Drag the ProvidersListResponsive section from the App Explorer
  12. In the upper-right corner, click Save to save the changes to the section.
Note: Only the repeating dynamic layout or the table is needed to show providers. Leave both for the purposes of comparison.

Confirm your work

  1. Return to the Assistance Request case instance that you created.
  2. In the upper-right corner, click Actions > Refresh.
  3. In the To do section, click Go to return to the Select service provider view.
  4. Confirm that the updated section is displayed. 
    Dynamic Repeating layout of Service providers.

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.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice