DMXzone Database Updater PHP Support Product Page

Answered

Deleting Record - Server Connect Action Executor Issue

Asked 21 Mar 2016 20:04:02
2
have this question
21 Mar 2016 20:04:02 Keith Mears posted:
I am trying to set a delete server connect action, however I cannot get it to delete from my database. I am following the tutorial but the Server Connect Action Executor panel is not the same as the tutorial, there is a selection of radio buttons at the top titled "Auto Run On: DOM Ready, Page Load, Form Submit, Never". These are not in the tutorial and none of them seem to fit.

On clicking the delete button on the page the behaviour does appear to run but the activity is not deleted and I wonder if the above radio buttons are the problem.

Help would be appreciated.

Keith

Replies

Replied 21 Mar 2016 20:17:53
21 Mar 2016 20:17:53 Keith Mears replied:
By playing around I have now got this to work, it seems the hidden field needs to be in a form! Once this is done in the Server Connect Action Executor you can select "Auto Run On: Form" and then it works fine. The tutorial needs to be update as I expect a number of others do since the recent updates.

Problem gone away for me.

Keith
Replied 21 Mar 2016 21:47:01
21 Mar 2016 21:47:01 Teodor Kuduschiev replied:
Hi Keith,
The options you mention pretty much explain what they do, when you read their names, also if you follow the tutorial you do not need these options, just select auto run: never.
As you can see in the delete record tutorial, we do not select "on form submit", but we bind the delete on button click, and also it is not a submit button.
If you want to use on form submit option, of course the hidden field must be in the form ... after all you are submitting the form.
Replied 22 Mar 2016 12:52:37
22 Mar 2016 12:52:37 Greta Garberini replied:
I have a similar question regarding the tutorial: Following the step to setup the Server Connect Action Executor in the Data Bindings panel, we larn to setup a delete server connect action executor. Then to click the Options tab and the Behaviors button in order to setup an onSuccess event to refresh the list. But this options does not exist anymore, because the data source has gone somewhere else. How shall we guess this?
Can you explain please how to get the list refreshed after the delete action has been executed? The tutorial does not help here - it confuses.
Replied 22 Mar 2016 12:55:56
22 Mar 2016 12:55:56 Teodor Kuduschiev replied:
Yes, this has changed slightly.
You need to go to behaviors - OnSucess -> Run Server Action Executor -> Run your executor, that returns the query with products.
Replied 22 Mar 2016 13:09:18
22 Mar 2016 13:09:18 Greta Garberini replied:
Well, this short sentence solved my problem. Thanks. What we customers need: To use a tutorial which we can follow step by step - at least for the first time we use this. Then its easy. I write this because I like these excellent video tutorials which you can follow step by step. Please bear in mind that the procedure for this functionality has changed recently.
Replied 22 Mar 2016 13:10:37
22 Mar 2016 13:10:37 Teodor Kuduschiev replied:
Our insert/delete/update tutorials are currently being updated, so they will available soon on our website.

Reply to this topic