Posts

Showing posts with the label function

Remove all Datapages programmatically

Use the following function:

@(Pega-RULES:DeclarePages).pzDeleteAllInstancesOfDeclarativePage(tools,D_MyDataPage)

That's all!

Using the "RemoveDeletedObjects" function to remove objects from a table

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.