Question


Morgan Stanley
IN
Last activity: 31 Aug 2020 14:19 EDT
Iterate and Remove pages from the same page list in data transform
Hi,
Can't i iterate through and remove pages from the same page list in a data transform .
Its not working as expected when i execute the above DT.
***Edited by Moderator Marissa to update General to Product; update Product details***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!


Capgemini
DE
Hi Haria,
there should be a thread on this topic on the community already. But there's one other approach, which I really like and thus want to share:
1. Iterate over the list
2. Mark those pages You want to remove by setting pyDeletedObject to True
3. After iterating over the list, invoke R-U-F @Utilities.RemoveDeletedObjects(<PageList>)
The reason why your approach is not working for you is because while removing pages the list-internal iterator object can't cope with the list being changed.
Let me know whether that works for You.
-
Abhinay Uge Wojtek Nowak Ritesh Chakraborty Manjunath Tanga


Empower
IN
Hi Wojtek,
Could you please suggest me the way to call the Utility (@Utilities.RemoveDeletedObjects(<PageList>)) in data transform step.
Regards,
Vijay
-
Ritesh Chakraborty


CGI
IN
Here Pagelist "Primary.GetGBAResponse.DisplayUnitTrusts" . If following doesn't works- try referring as follows "Primary.GetGBAResponse.getProperty("DisplayUnitTrusts") with in the function
Updated: 13 Apr 2020 2:25 EDT


Owens-Minor
US
Below Way Worked for me. Where SelectedDecision property should be one of the Property in Page List.
pyDeletedObject is a boolean property which should be added for the condition. Please let us know if this is helpful.
-
Matheswaran Ravichandran peihang gu Chandan Kumar Srujan Kumar Goud Bollipally Andrea De Rito and 4 More


Ordina
NL
From a functional point of view removing an item from a list does not seem like a strange request.
If Pega's internal administration has difficulties with that then I think Pega should change the implementation so that it supports deleting items from a page list.
Expecting the developers to solve this is not very developer friendly.
-
Christian John
Updated: 13 Aug 2020 12:33 EDT


LTI
IN
Hi,
As per the above people's comments, I have written the code and its worked for me. But used function like below written
@RemoveDeletedObjects(BackUpWorkPage.TaskDetailsList)
-
Dinesh Reddy Atma Sandeep Kar peihang gu Srujan Kumar Goud Bollipally Siva Noonay and 2 More