DMXzone Server Connect Support Product Page
Answered
Delete and refresh database funcion?
Asked 27 Feb 2016 22:40:30
1
has this question
27 Feb 2016 22:40:30 manuel pinto posted:
How to refresh datatable when i delete a record?I activate the option "Refresh the action data when this value changes" but it seems not to work
Replies
Replied 29 Feb 2016 08:49:36
29 Feb 2016 08:49:36 Teodor Kuduschiev replied:
Hi Manuel,
You should use the action executor behaviors in order to do this.
On action successfull -> refresh data source.
You should use the action executor behaviors in order to do this.
On action successfull -> refresh data source.
Replied 29 Feb 2016 13:36:58
29 Feb 2016 13:36:58 Dik Hendriks replied:
I encounter a similar problem...
Try to update a record, followed all the steps from the tutorials, checked several times, in the action executor behavior i only can select 'Select Active Record'. The update is not ecxecuted.
Try to update a record, followed all the steps from the tutorials, checked several times, in the action executor behavior i only can select 'Select Active Record'. The update is not ecxecuted.
Replied 29 Feb 2016 14:36:32
29 Feb 2016 14:36:32 Dik Hendriks replied:
Tried to insert a record, same problems!!
Replied 29 Feb 2016 14:56:02
29 Feb 2016 14:56:02 Dik Hendriks replied:
This time i tried it in the 'old fashion way' with the 'Manage Database Actions' and 'Manage Database Executors'.
Dit not work either...
Dit not work either...
Replied 29 Feb 2016 16:52:13
29 Feb 2016 16:52:13 manuel pinto replied:
Hi. Not working
Replied 29 Feb 2016 17:25:47
29 Feb 2016 17:25:47 Teodor Kuduschiev replied:
Hello Manuel, Dik,
Could you please be a little more detailed - what exactly do you mean by - Not working? What is not working? What settings did you select?
Could you please be a little more detailed - what exactly do you mean by - Not working? What is not working? What settings did you select?
Replied 29 Feb 2016 19:43:12
29 Feb 2016 19:43:12 manuel pinto replied:
I create a server action with a post variable named deleteid, a database connection and a database delete.
Then on databindings i create a server connect action executer and then on dataimput deleteid i associate the form field {{$FORM.deleteid}} and activate the "Refresh the action data when this value changes" but it seems not to work when i delete a record. Datasource should refresh instantly but i have to refresh page in order to see if the deleted record has been deleted
Then on databindings i create a server connect action executer and then on dataimput deleteid i associate the form field {{$FORM.deleteid}} and activate the "Refresh the action data when this value changes" but it seems not to work when i delete a record. Datasource should refresh instantly but i have to refresh page in order to see if the deleted record has been deleted
Replied 29 Feb 2016 20:56:49
29 Feb 2016 20:56:49 Teodor Kuduschiev replied:
"Refresh the action data when this value changes" is only used for filtering the data source, like when using a form filter.
Replied 29 Feb 2016 21:01:12
29 Feb 2016 21:01:12 manuel pinto replied:
Hummm ... so, i don't know where is the the executor behaviors in order to do this.
On action successfull -> refresh data source
I don't found it available
On action successfull -> refresh data source
I don't found it available
Replied 01 Mar 2016 08:02:08
01 Mar 2016 08:02:08 Teodor Kuduschiev replied:
Hello Manuel,
You have 2 server actions - right? One for deleting a record and one with the query that lists your products on the page. You should select to "run" the query action on deletion success behavior.
You have 2 server actions - right? One for deleting a record and one with the query that lists your products on the page. You should select to "run" the query action on deletion success behavior.
Replied 01 Mar 2016 08:03:18
01 Mar 2016 08:03:18 Dik Hendriks replied:
I created a Server Connect Update Action, then added a Server Connect Action Executor.
When i want to add a 'onSuccess' behavior and select DMXZone -> Control HTML5 Data Bindings, i can only select 'Select Active Record'. There should also be the option 'Refresh data'.
When i complete the page without the behaviour, my records don't update.
When i want to add a 'onSuccess' behavior and select DMXZone -> Control HTML5 Data Bindings, i can only select 'Select Active Record'. There should also be the option 'Refresh data'.
When i complete the page without the behaviour, my records don't update.
Replied 01 Mar 2016 08:39:53
01 Mar 2016 08:39:53 Teodor Kuduschiev replied:
You should not select control HTML5 Data Bindings, as i explained in my previous post you should run your action executor, which lists the data on the page:
prntscr.com/a9qolq
prntscr.com/a9qolq
Replied 01 Mar 2016 10:04:33
01 Mar 2016 10:04:33 manuel pinto replied:
Got it! Thanks!