Hello,
I have created properties in the section. How can I display data from records in data pages to properties in the section?
Regards
Mokshagna.
Hello,
I have created properties in the section. How can I display data from records in data pages to properties in the section?
Regards
Mokshagna.
Hello @MokshagnaJ17205438,
To display data from records in data pages to properties in a section in Pega, you can follow these steps:
Create a Data Page: Ensure you have a Data Page created that sources the data you want to display. This Data Page will fetch the records you need.
Go to Records > Data Model > Data Page and create a new Data Page.
Define the appropriate data source (e.g., a connector, report definition, or a data transform).
Configure the Data Page:
Set the scope (Thread, Requestor, or Node) based on your requirements.
Define the parameters if needed, which will be used to filter or fetch specific data.
Reference the Data Page in the Section:
Open the section where you want to display the data.
Add the necessary UI controls (like text inputs, labels, repeating grids, etc.) to the section.
For each property, configure the property reference to point to the data in your Data Page.
Mapping Properties:
For individual properties:
In the property reference field of the UI control (like a text input or label), enter the reference to the Data Page and the property you want to display.
For example,
if your Data Page is D_DataPage and the property is CustomerName, you would set the property reference to D_DataPage.CustomerName.
For a repeating grid or list:
Add a repeating grid layout or dynamic layout to the section.
Configure the source of the repeating grid to use the Data Page. For example, set the source to D_DataPage.pxResults.
Map the columns in the grid to the properties in the Data Page.
Reloading Data Page:
Ensure that the Data Page reload strategy is configured correctly to fetch fresh data when needed.
If the Data Page is parameterized, make sure to pass the necessary parameters when the section is rendered.
Thanks
Hello,
Please ensure to include a pre-data transformation step before the loading section. This step involves mapping the details from the data page to your section properties. By doing this, the details will be mapped before the screen loads. Thank you.
There are a lot of ways to achieve this, the answer will depend on your requirement.