Posted: 14 Mar 2019 17:18 EDT Last activity: 18 Mar 2019 10:02 EDT
CSV Subset Removal in a Pagelist
I have an issue in an activity which is supposed to output a Pagelist of CSV values. Each page of the pagelist contains a comma separated list of IDs, as shown below:
What is the least performance intensive way to get rid of all subsets in the pagelist (If [O1,O2,O3] is somewhere on the pagelist, pages comprised of [O1,O2], [O1,O3], and [O2,O3] should not show up)? In the above example, only pxResults(1) and pxResults(4) should remain after performing this function, as they are not fully contained by any other page.
Thanks! I was hoping that there was an OOTB way to avoid splitting each CSV into its component parts, but I can understand why. This may become an issue if the number of elements grows too large, so perhaps using pagelists/sets instead (meaning a pagelist inside a pagelist) and simply converting the output to a CSV would be more viable.