how to delete a record in table with confirmation message

Hello,

I need to delete a record in table. When I click on the delete icon it should get a confirmation popup saying that " Are you sure to delete" with Yes or No. If I click yes it should delete the record from table.

Any suggestions please, Thanks in advance.

Hi @SuryaBasani,

Couple of same queries has been raised. Please refer Remove record out of table, Delete selected record from table using local action, Confirm pop up before deletion when we click on delete icon, Delete Specific item in repeating dynamic layout with Confirmation message.

Hope these would helpful to you.

Please go through all possible scenarios. If the issue still persists, please let us know with the reference screenshots.

Thanks!

@SuryaBasani

In Pega, when there is a need to delete a record from a table, it is possible to implement a confirmation popup which prompts the user to confirm the deletion before proceeding. This can be accomplished using a combination of a delete button, a pop-up dialog window, and an activity.

To implement this feature, begin by adding a delete button with a corresponding delete icon to the appropriate cell in the table. Then, define an “On Click” event for the button that triggers a local action, which displays a pop-up dialog window with a message that reads “Are you sure you want to delete this record?” along with two buttons, labeled “Yes” and “No” respectively.

To enable the “Yes” button to delete the record, create an activity with a “Delete” method step that references the appropriate data page or data source, and then specify this activity in the action set of the “Yes” button. This will ensure that the activity is called when the user clicks the “Yes” button, effectively deleting the record from the table.

By setting up this workflow, clicking on the delete button will launch the pop-up dialog window, providing the user with a prompt to confirm the deletion before proceeding. If the user selects “Yes”, the record will be deleted from the table using the specified activity, providing an intuitive and reliable way to manage data in a Pega application.

@SuryaBasani ,

Please mark this thread as closed ( “answered” or “solved”)

Thanks,

Ravoof.