Question
Capgemini
GB
Last activity: 4 Dec 2025 15:37 EST
How to initialize a new page for embedded data in Constellation
I have a field of type embedded data + list of records.
I can configure a view to show it as a table with a modal dialog to add new records.
How to initialize a newly created page?
More details at point 5 in below link
In the Theme-cosmos, when I define a DT with name pyDefault it used to run before creating a new page but I dont see it working in constellation.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
GB
@SateeshB6784the pyDefault data transform does work, however, this only fires in Constellation when it has a reason to do so.
If you add a calculation (declare expression) to the create form of the embedded data object, then it will run your pyDefault on creation of the record. This is the only way I know of, unless you split creation over multiple steps/assignments (not ideal).
Capgemini
GB
@MarcCheong - Thank you for your response Marc.
Your comments confirm the actual issue we are facing in 24.1 version
When we configured an embedded data to display as a table and add/edit as table rows --> it runs pyDefault and row gets initialised correctly.
When we configured an embedded data to display as a table and add/edit as Modal --> it does NOT RUN runs pyDefault
I did not fully understood your mention of calculation (declare expression) to the create form. If we declare a field as a calculation, then it will become read-only right? In my situation, I just want to populate it with a default value so that user can modify to his or her choice.
I think the product should have the same consistency of running pyDefault weather its table row or modal.
Also, in your modal approach, your field is getting initialised not because of pyDefault but because of declare expression. Did you actually see pyDefault in tracer in your modal appraoch? Thank you
Pegasystems Inc.
IN
@MarcCheong If we configure declare expression we cant edit that field. If there is requirement to copy data from case to table row and user still want to change that. will this work ?
Pegasystems Inc.
GB
@walug since this post, '25 has introduced actions on data (modal), that would be the recommended way to do this. The pyDeafult path was always a little hacky and not without its problems. I haven't explicitly tried the copying of a calculation. There is some experiences in my head that suggest it would and some that it wouldn't, but I haven't done it. Please try and let us know the outcome :)
Pegasystems Inc.
GB
@SateeshB6784 @SateeshB6784 it works better as a table though, you don't need an on change event, just telling the table to be visible > when > always, is a enough to trigger this. See these images.


Images are from an early version of 25.1
AFNI
US
In my case I'm trying to just create a table that is stored with the case and man am I having a rough time because it seems like things can save or I can add a new record and then it doesn't - 404 errors or just locks up.
When I have the addition of a record in a step it works just fine as I've seen in a lot of places but if this is just an ongoing record I want to keep and allow users to add to it (a bit like pulse but with some additional fields) would I need to add my entire table to each step in constellation?
Ideally this log would be in a tab at the bottom or I could present the addition of records to this activity log as a promoted button but the only way I've been able to add records to embedded data is in steps so far. I had it working with an action for a while but now it seems to freeze when I do that so I don't know if it's very supported.
Honestly, thought I was just trying to do something that was very low effort initially and feels like something that should be easily done and supported which is why I haven't defaulted to just going into dev studio and writing a bunch of stuff.
Updated: 31 May 2025 9:52 EDT
Pegasystems Inc.
GB
@ZacharyS6068 yes, if i'm understanding your scenario then observations are correct. In UI Kit this was also the case, we had a Perform Harness and Review Harness. With the right action sets, yes, you could make the Review act like a Perform (activities, obtain lock, refreshing section etc.).
Constellation the design system continues, so trying to put a table at the bottom in case tabs (as embedded data) will not work. My suggestion would be a optional action, marking it as the promoted action, to make it more visible.
Optional action freezing
If you're having trouble with this freezing, would suggest you post a new question with some more details about your implementation. It is definitely, possible. Please tag me in the comments on your new post, and i'll be happy to comment.
Alternative?
Again, probably best I post on your new question for alternatives. If you are looking for pulse as inspiration, then that would be considered a data reference. The data lives in a class outside the case, and the pulse widget interacts with that data (not the case). This is so multiple people can comment, without holding the lock.
@ZacharyS6068 yes, if i'm understanding your scenario then observations are correct. In UI Kit this was also the case, we had a Perform Harness and Review Harness. With the right action sets, yes, you could make the Review act like a Perform (activities, obtain lock, refreshing section etc.).
Constellation the design system continues, so trying to put a table at the bottom in case tabs (as embedded data) will not work. My suggestion would be a optional action, marking it as the promoted action, to make it more visible.
Optional action freezing
If you're having trouble with this freezing, would suggest you post a new question with some more details about your implementation. It is definitely, possible. Please tag me in the comments on your new post, and i'll be happy to comment.
Alternative?
Again, probably best I post on your new question for alternatives. If you are looking for pulse as inspiration, then that would be considered a data reference. The data lives in a class outside the case, and the pulse widget interacts with that data (not the case). This is so multiple people can comment, without holding the lock.
You can replicate the same in Constellation, I have done the same at a client back in 2023 as we wanted are more detailed variation of Pulse. This is a lot more effort than working with embedded data and editing in in "perform" (step or optional action), so would suggest getting to the bottom of the freezing issue.
AFNI
US
@MarcCheongThanks! That is my current plan to created the promoted action to handle it.