PEGACPSA88V1-QUESTION practice question 15 of 15

In an online retail application, the Order Receipt view displays a list of the products ordered, including the product image, unit cost, and quantity…

Full set: 82 questions
In an online retail application, the Order Receipt view displays a list of the products ordered, including the product image, unit cost, and quantity The total cost of the order is displayed at the bottom of the view Which two configurations on the Order Receipt view must be used together to display the required information as described? (Choose two.) Available Choices (select all choices that are correct )
Answer options
A: Add a repeating dynamic layout with embedded dynamic layouts Correct answer
B: Add the total cost Inside the repeating dynamic layout
C: Add a dynamic layout with an embedded repeating dynamic layout
D: Add the total cost outside the repeating dynamic layout Correct answer
Correct Answer:
A. Add a repeating dynamic layout with embedded dynamic layouts; D. Add the total cost outside the repeating dynamic layout
Explanation

To display a list of items, such as products in an order, the standard Pega Platform™ approach is to use a repeating dynamic layout. This layout iterates over a page list property. For each item in the list, an embedded layout (such as a dynamic layout) is used to organize the specific fields like the product image, unit cost, and quantity. This configuration directly addresses the requirement for the product list. The total cost is a single, aggregate value for the entire order. To ensure it appears only once at the bottom of the view, its corresponding property must be placed outside the repeating dynamic layout. Placing it inside would cause the total to be repeated for every product in the list.

Why Incorrect

B. Add the total cost Inside the repeating dynamic layout This is incorrect because placing the total cost inside the repeating layout would cause the value to be displayed for every single product in the order, which is not the desired behavior.
C. Add a dynamic layout with an embedded repeating dynamic layout While a repeating layout is typically placed within a parent dynamic layout, option A is more precise. It describes the necessary structure for the list itself: a repeating layout that contains embedded layouts for each row's content.

References

1. Pega Academy (Senior System Architect 8.8): In the "Configuring a user interface" mission, the module "Displaying lists of data" explains the use of repeating layouts. The lesson "Configuring a repeating dynamic layout" demonstrates sourcing a list and using a section include to define the layout for each item, which supports option A. It also implicitly supports option D by showing that aggregate data is placed outside the repeating structure.

2. Pega Documentation: "Creating a repeating dynamic layout". This document outlines the procedure: "A repeating dynamic layout displays data from a list-based data source, such as a page list or a data page... For each item in the list, the repeating dynamic layout displays a section that you specify." This confirms that a repeating layout contains a section (with its own layouts) for each item, validating option A.

3. Pega Documentation: "Dynamic layout". This document describes the dynamic layout as a primary container for structuring content. For the scenario in the question, the total cost field would be placed in a dynamic layout positioned after (outside of) the repeating dynamic layout that lists the products. This validates option D.

Scroll to Top