There is a requirement where i need to navigate to parent case from child but i need to have parent case id as link in summary panel. can you pls guide on how to achieve this?
First of all, there’s already a default link to the parent case. See the green box below. That’s also part of the summary panel, right?
But if you want to put it somewhere else, just create a case reference property. Create a data transform that maps your property to pyWorkCover. You can then place the case reference anywhere - see red boxes below. It automatically creates a link for you.
Hope this helps!
i m aware of this, after creation of this page property you want me to use this(PageProperty.pzInsKey) structure in view?
Did you create the data transform? This is what sets the ParentWorkObject field. Run it once the child case is created, and before you need to display anything.
In the DT, set ParentWorkObject to pyWorkCover. In Pages and Classes, define pyWorkCover with the class of the parent case type (for me, Uplus-UIExamples-Work-Hello).
Ok, but i have a question. we are already refering this property to parent case via case reference right. now we can access parent case data through this property. Why again we need to copy cover page to this property via DT ? How ever i tried mapping .ParentWorkObject=pyWorkCover as you mentioned in pyDefault data transform but again the same issue null value.
when i tried the same approcah in pyUpgradeOnOpen it worked. Can you help me to understan d this aswell? why not pyDefault? is this bcs of constellation?
When we created the case ref, you could only specify the class that the case ref points to. You still need to map the actual case at some point. Hence the need for a DT.
I didn’t try pyDefault but that’s not a bad idea. Did you set pyWorkCover’s class in Pages and Classes? Maybe try a regular DT as a step in the child case just to test?
edit: I missed the part of your response about it working elsewhere but not pyDefault. I don’t really understand why. But yes pyDefault does have some special behaviors. Perhaps pyWorkCover is not set yet when pyDefault happens? here’s a description I got on ptWorkCover: “When a child case is opened in memory, Pega automatically loads the parent case context onto this clipboard page. ”. So pyWorkCover isn’t immediately available - only when the case is opened in memory.







