[Constellation] Processing selected rows in a table

Hi,

I’m struggling with a requirement that is super easy in Cosmos/UI Kit and in Constellation is totally unclear to me how to achieve that.

I want to show a list of optional courses to the end user, the user chooses any number of option and in post-processing I want to check what was chosen. In Comos I would just add a property pySelected on a editable DP or on a page list property in a case and proceed based on it. In Constellation I can’t choose in a view what is under a checkbox.

And here is my list field definition

When I run tracer I can’t see any flag on my list property that indicated that an option was selected.

Can anyone help with that?

@PawelAdamczuk

Hi Pawel,
due to stateless nature of Constellation architecture you might not see in Tracer what you were used to see, or you might need to trace service behind DX API.

But all is good, you will be able to achieve your outcome with Data Reference field. You don’t need to play with pySelected property and copy data from Data Page to Page List property on a case. It is way easier. Once user selects some data on screen it will be copied to your case under defined Page List property and you will be able to use it in post processing.

@PawelAdamczukhave you got chance to go through Constellation Adoption mission: https://academy.pega.com/mission/constellation-adoption/v1? where we explain this and many more patterns used in Constellation?

@Kamil Janeczek
Hi Kamil and thanks for your answer. The problem is I don’t have this boolean value in the clipboard or even simpler - I don’t have it on my page list under pyWorkPage. I don’t know which rows were selected by the user so I can’t proceed based on the selection.

Thanks for the link to Pega academy, I hope that the problem is covered there.

@PawelAdamczuk Academy mission is covering your use case. It something with config that you have, after saving a case selected rows should appear on Page List.

@Kamil Janeczek The challenge with the Data Reference field is that it only works with Concrete classes. We have a requirement where use need to select one of the row items that is returned by an API. It doesn’t make sense to copy the temporary data into a concrete table and then add a data reference field. Do you know any other workarounds?

@Siddharth21, Kamil Janeczek, Paweł Adamczuk I have similar requirement,

In screen 1: I need to show product list in a table, where user selects more than 1 product (lets say 10) (table with check box for each row)

In screen 2:I need to show that selected 10 products but this time user selects only 1 product out of 10 (table with radio button for each row).

now the challenge is, how would I show 10 selected products from screen 2?

Thank you.