I got the client to server data connection and sending working.
3 questions:
(1) is there a way to control the event id number? My MySQL table auto incr value is at 7 but the event id’s coming from the client to server is is currently at 1490128962121. How can I set the id on the client side?
(2) after I click the Save or Cancel or Delete button in Lightbox, is there a way to fresh the web page (as a means of emulating a form submit and page refresh)?
(3) when I click save in Lightbox I get a pop-up window. How can I prevent that from popping up? (see screen shot)
(1) is there a way to control the event id number? My MySQL table auto incr value is at 7 but the event id’s coming from the client to server is is currently at 1490128962121. How can I set the id on the client side?
The client generates a temporary id and sends the event to the server. The server adds the event to the database and returns to the client a constant id, which was assigned to the database. After that the event on the client will have the correct id.
If you use data processor, then the id must return to the tid field of the response. docs.dhtmlx.com/dataprocessor__ … nsedetails
If you send events manually, then when you receive a new id on the client, you should apply it using this method. docs.dhtmlx.com/scheduler/api__ … entid.html
(2) after I click the Save or Cancel or Delete button in Lightbox, is there a way to fresh the web page (as a means of emulating a form submit and page refresh)?
If you have only these three custom buttons in the Lightbox, you can refresh Scheduler on onAfterLightbox event.
scheduler.attachEvent("onAfterLightbox", function (){
scheduler.updateView()
});
(3) when I click save in Lightbox I get a pop-up window. How can I prevent that from popping up? (see screen shot)
We need to reproduce this issue, please try to create a demo.
But this does…so thank you very, very much @Polina for assisting me by sharing the code with me. The hidden-mystery method is scheduler.attachEvent("onAfterLightbox")
scheduler.attachEvent("onAfterLightbox", function (){
window.location.reload(false);
});
Nevertheless the issue “when I click save in Lightbox I get a pop-up window. How can I prevent that from popping up? (see screen shot)” isn’t reproduced. We need the opportunity to reproduce it to understand the cause of the problem.
May be you have a possibility to provide with an access to the application if this problem occurs only there?