Accessing Data Class Properties in Work Class – Constellation Use Case

Hello

I’m currently working on a use case in Constellation.

Please find the attached image for reference. In this scenario:

UseWorkBusiness is a property defined in the Work class.

Address and BuildingDescription are part of a field group defined in the Data class.

I’m trying to access properties from the Data class within the Work class using a data transform, which is invoked through a flow action triggered on form refresh

Although there are no errors during execution, the expected outcome isn’t being achieved.

Has anyone encountered a similar use case or faced this behavior before?

@THARUNKT this use case can not be achieved using Form Refresh Settings in '24. It looks like you are using '24?

I cover this in my Constellation 101 article: Form refresh settings: The artist formally known as “on change, run data transform..” | Pega Community

If you are using '25, this is supported.

Can we see your DT details? I believe you have to use the number paged directly to add record one e.g. LocationAddress(1).PostCode

If you are using '25, then you also have support for Actions or Views on embedded data, so this might also be a way to achieve the business outcome.

@MarcCheong

I’m currently working in the Community Edition 25.

While I’m able to reference flat-level properties such as Text and Boolean without issues, I’m encountering this behavior when working with a Page List, the values aren’t updating as expected.

I’ve attached the Data Model and Data Transform for your reference.

@THARUNKT thanks, ok so i think the issue is you are using pyWorkPage, which even in UI Kit days was generally considered a slightly poor practice (very poor by some).

Given you are in the context of your Work Class already, you should just be able to directly reference .LocationAddress without referencing pyWorkPage. If you need to get to the TOP page, then you can reference that direct - I have seen implementations have to use TOP in some cases for different Constellation use cases,