Question
Pegasystems Inc.
IN
Last activity: 16 Oct 2018 12:03 EDT
How to Remove Duplicate in PageList
We have page list ElementList.pxResults and have property CLM_Numbers.
I just want to remove the duplicate values for CLM_Numbers in ElementList.pxResults page list. Could see OOTB functions but not able to use it.
Please help me on this.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Raj,
I had tried to remove the duplicates from Page List with a sample use case as explained in attachment.
Hope it might help you to achieve your requirement.
Regards
Mahesh
Pegasystems Inc.
IN
https://collaborate.pega.com/discussion/remove-duplicate-values-pagelist-using-same-pagelist
Please look into the above link, that might be helpful for you.
Pegasystems Inc.
IN
You can refer DecisionParametersUtils.RemoveDuplicatesInPageList function to remove the duplicate values in pagelist
J.P. Morgan Services India PVT Ltd
IN
Hi,
please refer to the link and go through the document attached.
Thank you
Vodafone Shared Services India
IN
Hi,
Can you try this:
ClipboardPage ListPage1 = tools.findPage("ElementList");
pega_rules_utilities.pyRemoveDuplicatesFromPagelist(ListPage1,".pxResults","CLM_Numbers");
-
Vivek Reddy Purra
Accepted Solution
Pegasystems Inc.
US
Hi Raj,
I had tried to remove the duplicates from Page List with a sample use case as explained in attachment.
Hope it might help you to achieve your requirement.
Regards
Mahesh
-
Anupriyadarshinii Rajasekaran Rohith Achanta Prudhvi Raj Kavitha Kuppusamy Vishnu Vardhan and 7 More
Serendebyte
IN
-
Sai Krishna YATHVIK SAI TRINADH PAPINENI
Accenture
IN
Ho Mahesh,
Could you please help me to understand the purpose of the clipboardProperty pyStateListcase in your java code.
when I open the function in designer studio I found 3 input parameter listPage, keyProp and className.
Thanks in advance.
JPMorgan Chase & Company
US
Bits in Glass
IN
Hi Raj
You can use OOTB function
@Utilities.pyRemoveDuplicatesFromPagelist(ListPage,PageListName,DuplicateCheckProperties) and pass the required mandatory parameters to remove duplicate items in the list.
Ex: Configure like as this @Utilities.pyRemoveDuplicatesFromPagelist(Primary,".DetailsList","Name")
Here Primary is clipboard Listpage name, DetailsList is my pagelist and Name is the comparing pagelist property to check duplicates with same name value in the list.
Thanks
Hemalatha
-
Anupriyadarshinii Rajasekaran Hemalatha Sura Korikana Sriraj Yesuraju Chokka
Pegasystems Inc.
IN
Thanks All!
Most of them worked.
Pegasystems Inc.
US
Glad to hear that most of them worked! Would love for you to share your resolution for this and then if you could mark your reply as Correct Answer, that would be great! I have marked your post as Assumed Answered based on your last reply.
Thanks!
Optum
IN
Hi Raj
You can use OOTB function
@Utilities.pyRemoveDuplicatesFromPagelist(ListPage,PageListName,DuplicateCheckProperties) and pass the required mandatory parameters to remove duplicate items in the list.
Ex: Configure like as this @Utilities.pyRemoveDuplicatesFromPagelist(Primary,".DetailsList","Name")
Here Primary is clipboard Listpage name, DetailsList is my pagelist and Name is the comparing pagelist property to check duplicates with same name value in the list.
Thanks
Hemalatha.
This one has worked for me
-
Korikana Sriraj Aditya Tripathi Shubham Grover Maleesha Wilfred