I have a requirement where we need to display data which is coming from a REST service with the help of data page. The displaying part is done usijg list views and it is working as expected.But the problem is with the selection of data(rows) which must be copied to pagelist (selected data) and here we will perform further processing.
Attempts Made: I have kept the data page in editable mode. And added a pyselected column in the columns of the table view., But still i cannot see the checkbox icon on the table.
This works differently with Constellation than what you might be used to with UI-Kit or Theme Cosmos. You need to work the the Reference data type to implement a select pattern.
As a prerequisite, for the data page, you need to make sure the status is API.
I found multiple posts on this topic on the Pega forum, some with extensive details on the entirety of how to deal with CRUD, i.e. Managing external SoR through REST with CRUD actions. See if you can proceed with this!
@HarithaC are you in the User Experience Expert Circle? I want to move this to that category so it can be seen with other Constellation questions but you will lose write access to this conversation if you are not in there.
If I understand the requirement correctly, you are trying to display records from a data page in a table, allow users to select multiple rows, and then copy those selected rows into a pagelist for further processing.
In Constellation, you do not need to explicitly add a .pySelected property to render checkboxes. When the field is configured as a Data Reference (list of records) and the mode is set to Multi-select, the table automatically provides checkbox selection.Also, adding .pySelected as a column will not make the checkbox appear, as selection is handled by the UI.
From your configuration, the selection should already be working (for example, showing “2 selected”). The selected records are available on the bound property(for example, pyWorkPage.InvestmentPortfolios), which holds the selected items .
To complete the requirement:
Configure the field with Mode = Multi-select
Use the data reference table for displaying recor ds
Access the selected records from the bound propert y
In post-processing (Data Transform / Action), copy those records into your target pagelist (embedded d ata)
Use that pagelist in the next step/screen
So the key point is: no need for .pySelected - you could rely on the built-in multi-select behavior and map the selected records from the bound prope rty.