My Clipboard structure is in the format pyWorkpage.Customer.Pagelist(1).ChildList(1)
In UI, we need to refer the property available in the Pagelist(1) into the view which is there on ChildList(1) and update the reference list dynamically based on this property. As we are unable to refer to the property of the parent page during view configuration while we dynamically show the reference list in the view. How do we achieve the same
@NavalT17665010 Would you mind clarifying the situation a bit? From what I understand, you want to show properties from .Pagelist(), but I do not see why you can’t use this list in your view.
In '24 you’d likely have to use standard assignment post/pre processing to manipulate the data you require. However, if we understand more what business outcome you are trying to achieve, we might be able to better guide you on your options.
in the parent list, we have a property which holds the currency. In the child list view, we are having options to select country, a reference list value. Based on the currency available in the parent page list property, the reference list value must be dynamic and each option be appended with the currency. for a give item in the parent pagelist there are multiple items available in the child lists. Each of them should be referring to the currency available in parent list
We are facing an issue, due “At present, Flow Action form refresh settings do not support open-valued page lists, such as .samplePagelist().scalarField.”
@NavalT17665010 you are correct, you would not be able to use form refresh settings for this. You could possibly using a calculation (declare expression), Constellation UI will listen to changes to inputs and refresh that field. This would mean you do not need to build your own Form Refresh settings to listen for changes (getting around that limitation). The complexity would be in finding the index you are in and the parent of it, but I think that would be doable?
Failing that, you would probably be best looking at post processing on the assignment to manipulate the data.
@NavalT17665010 What type of list is your child list? Thinking if it could be made a data reference or similar. Then the currency value on the parent list entry could be used as parameter input for the data page.
Not sure if this applies to your scenario, but overall I would try to think about the structure/data model. At the moment I see your stated need from more of a technical perspective, but I’m not fully grasping the business scenario of the functionality.
@NavalT17665010 We can use @Page.pxGetParentPage(myStepPage) function to fetch the parent page context and then set the value using declare expression.
Note: Unfortunately form refresh settings cannot be used here. Also hardcoding in form refresh setting for a pagelist looks like bad implementation by pega. Because in production, the pagelist can have any number of elements and we can not write .PageList(10).pyLabel for each index