Need entire page list path in property set message

Hi Team,

I have a requirement to validate few properties in page list added in the screen. I need to show entire page list path in the error in the above. Can somebody help me how to achieve this.

ex:familydetails(1).amount

@prasannap7258

Can you please elaborated your scenario further?

Hi @prasannap7258

Can you please go through the link below and see if it helps

Kind Regards

Megha

@SohamM95 I am running validation rule on page list property amount as non negative. The error message is showing as Amount should not be negative but iam expecting familydetails(1).amount should not be negative.

@prasannap7258

try bit of custom solution.
when the criteria of validation satisfies, you use @addmessage(fx) and in the message hopefully this entire thing is page list and you will be looping it in. So inside the message use @pxGetStepPageReference() + “Validation Message” this will be shown.

Or try with normal validate and give the pagelist in first validate which inturn will call another validate on the pagelist class level . it should also throw same validation like you requirement.

@prasannap7258

For this requirement, you need to customize it a bit. Instead of running a validate rule you have to loop through the list with a DT/Utility. In the loop you need to check the condition for each page and add the validate message using @pxAddMessageToPage() where provide the step page as @pxGetStepPageReference().