In Pega Infinity 24.2.2, I have a table list view within my case where the user can create/update/delete records in the table. The source is a data page. In the ootb create/edit modal window, I need to reference a value from the work page as a parameter for a dropdown. The context of the modal is unable to see anything from the work page. Are there any solutions for this? I do not see a flow action rule for the ootb modal where I can add pre-processing.
@AlexD619Do you mean that you have an embedded data list that you use in your case or that you managed to add a list view from a data object “stright up” into the case? Depending on which the answer will be different:
- In case of embedded data: I would recommend to update to Pega '25. In '25, there is the option to use an action instead of a view for adding rows to your embedded list. That way, you now have preprocessing you can run when you add a row.
- In case of list view directly showing all records like a landing page: I wouldn’t do this. I know it’s possible to “get it in there” on a case, but list views and insights are intended for landing pages and places outside a case context. I would suggest to handle your data updates with an embedded list in the case first, and then perist the updates at a specific point in the case. That way, you don’t mix the concepts of data record updates and case level data entry.
@AlexD619 this is the link for the feature @LantzAndreas is talking about.
There are some helpful tutorials with this feature in Pega Docs.
TOP page
To refer to “pyWorkPage” you should be using TOP, this predates constellation but the stateless nature of Constellation means TOP is the only way to traverse from data level to your case level. I’m not expert in this space, I’ve been guilty of directly using pyWorkPage in the past, but recently learnt about TOP and constellation - this was a good reference for me (even though its UI Kit related)
I was talking to @MARIK today, am keen to create a Constellation 101 on this feature, using TOP to prefill some embedded data, so watch this space.
@AlexD619 , here’s a video example of how the first scenario could be achieved.
Once you have '25, here’s an article that shows a usage of Top: https://docs.pega.com/bundle/platform/page/platform/user-experience/validating-total-amount-embedded-data-table.html. Should we just link the 3 validation help articles to Constellation 101?
@SrikanthY16686929@MARIK really useful links and conversation. I was meaning to write a Constellation 101 on this but you have all basically done it for me. I’ve posted it so others can benefit from it.