Question
1
Replies
490
Views
Posted: March 5, 2019
Last activity: March 6, 2019
Closed
How to validate grid(table grid) based on property
This is for Pega 7.3.1
If the grid (or called table grid) has no data and based on some property we want to throw an validation error.
For Ex: If the grid that shows various Address(Page group) - If there are no addresses present in the grid and based on some other property like Role = "owner" - we want to throw error to add atleast one address
How do we implement this ? Please suggest/advise.
Hi Shruti,
I believe following is a way to implement that if I understood the requirement correctly.
You can simply use a validate rule where you can evaluate the first property in the pagelist(or page group) against empty value. Using function string equals string .pagelist(1).property1==""
If there are no addresses, the validation would fail and you can display error message to add atleast one address.
Hope that helps.