Remove all Datapages programmatically
Use the following function:
@(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools,D_MyDataPage)
That's all!
Use the following function:
@(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools,D_MyDataPage)
That's all!
First, we need to mark every object to be removed by setting their property .pyDeletedObject to true.
Then, apply the following function:
@Utilities.RemoveDeletedObjects(TopPage.MyPageList)
After applying this function, the marked elements will be removed from the page list.