Discussion
1
Replies
8728
Views
Posted: June 17, 2016
Last activity: June 17, 2016
Compare Two Clipboard Pagelist
I have Two Clipboard pages Assume ABC Pages And XYZ Page. In That I have Two Pagelists, I need to compare these two Pagelists and remove same Pages in Pagelist and Present the remaining pages in a New result page of Clipboard.
I used for Embedded page loop and The function @Isinpagelist but it is not working.
Please let me know the best apporach.
Regards,
MAYAN
Assuming there is some Property in each PageList that acts as a "key" for each page.
Also assuming that all pages with the same key are identical - something you would expect for read-only data obtained from a System Of Record (SOR).
Your are essentially looking for the "union" of the two lists.
You could create a new target PageList, say "MyTargetList", plus create a Text ValueList Property, say "MyStringList".
As you iterate both PageLists call @Utilities AppendToStringListIfUnique.
For the function's two arguments pass in "MyStringList" and the value of the Key Property.
If "true" is returned, append the current page to MyTargetList.
If "false" is returned ignore the iterated page.