DMXzone Database Updater PHP Support Product Page


Delete popup message

Asked 31 Oct 2013 14:06:31
have this question
31 Oct 2013 14:06:31 D.D.M. van Zelst posted:
Regarding the Delete (multiple) records behavior.
Is there a way to use one of your popup extensions to show up before the delete action takes place, to confirm the delete action, like "are you sure you want to delete?"

This would be nice to prevent deletion by accident.



Replied 01 Nov 2013 10:16:36
01 Nov 2013 10:16:36 Teodor Kuduschiev replied:

Unfortunately there is no an "are you sure" option available in the extension.
Replied 01 Nov 2013 13:16:07
01 Nov 2013 13:16:07 D.D.M. van Zelst replied:
Will it be possible in the near future to use the behavior connector to trigger one of your popup extensions or light box with such message before the delete action will be triggered?

It would be a nice addition to be able to do such thing.

By the way, these extension are great, just need to play around to figure out what all can be done with it!!! Also hope to see much more video tutorials showing what all can be done with them.

Keep up the good work.
Replied 05 Dec 2013 00:05:17
05 Dec 2013 00:05:17 Hans Haverlach replied:
I found a way: Give the delete button a data-recordid and an ID. Then with javascript:
$('.delschool').click(function(event) {
var recid = $(this).attr('data-recordid');
var r=confirm("Are you sure you want to delete?";
if (r==true) {
dmxDatabaseActionControl('run','Delete school',{'data':{'school_id': recid}},this);
That will do the trick.
Replied 25 May 2016 07:51:11
25 May 2016 07:51:11 Ben Pleysier replied:
Added the highlighted parts

<button type="button" class="btn btn-primary btn-xs" onClick="if(confirm('Are you sure you want to delete {{MemberFirstName}} {{MemberLastName}}?')){dmxServerActionControl('run','execDeleteMember',{&quot;deleteID&quot;: &quot;{{@MemberID}}&quot;},this);}else{ }">Delete</button>
Replied 25 May 2016 08:17:24
25 May 2016 08:17:24 Teodor Kuduschiev replied:
Hi Ben,
Currently the easiest way to do this, is to call a bootstrap 3 modal, and apply the run delete action executor to one of its buttons.
Replied 25 May 2016 10:28:02
25 May 2016 10:28:02 Ben Pleysier replied:

I tried that partly because I have the insert and update record using the modal. Couldn't get the delete record to work properly hence my above solution. Thanks for your reply, will try again and let you know.

Reply to this topic