Question
Virtusa
IN
Last activity: 19 Feb 2024 0:18 EST
Function to get unique records count In page list
Hello,
I have a requirement where I need to get the count in page list when a condition is satisfied and the counted pages are unique by one property.
I know we have a function called countInPageListWhen already, But this will give me only the count in page list when a condition is satisfied. I need to also validate the record is unique by a property.
So I need Java code to create a function for this requirement. My function syntax should look like below.
@getUniqueCountWhen(whenRule, uniqueProp, pageList).
Thanks in advance :)