Delete selected record from table using local action

Hi,

I have to delete a record when I select one record from table it should popup an message “Are you sure want delete with Yes or No” If I click yes the record should be deleted if No we need get back to table.

Any help on this.

Thank you,

Surya

Hi @SuryaBasani,

Configure like below on the delete button.

If this doesn’t work. Please refer below thread.

https://support.pega.com/question/urgent-warning-message-should-appear-when-click-delete-item-repeated-grid

Thanks,

Vinay

HI @SuryaBasani:

Have you gone through the below articles:

You can also configure a local action in the button to show the confirmation message and can delete the record in the post action of local action.

Thanks

@SuryaBasani Hi, In the post process of your delete flow action, you can set .pyDeletedObject = true and then you need to add a refresh section after the local action and you add a data transform which have Param.DeleteRecords = @Utilities.RemoveDeletedObjects(). Note: if you have an optimized table, you need to change the template of your local action action by using the template pyNextGenGridModalTemplate instead of pzModalTemplate