A.pxResults(1) has .property1(value 101), .property2(ABC)
A.pxResults(2) has .property1(value 201), .property2(MMM)
A.pxResults(3) has .property1(value 101), .property2(XYZ)
On click of a button I need to find the duplicates in the pagelist based on property1 but need to concatenate property2 values separated by semicolon of the duplicate records. My output should be
B.pxResults(1) should have property1(101), property2(ABC;XYZ)
B.pxResults(2) should have property1(201), property2(MMM)
Thanks Much. 1st approach will cater my needs. As i am pretty new to this type of coding, can you pls do this in pega rule and send me the screen shot. Thanks for you help.