jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › setAppointmentProperty not working
Tagged: scheduler calendar update
This topic contains 11 replies, has 2 voices, and was last updated by svetoslav_borislavov 2 years, 6 months ago.
-
Author
-
Hi, I’m trying to update an appointment on the calendar here but the setAppointmentProperty is not working the view is changing on the calendar but when I get the appointments using getAppointments method the updated appointment still return the old data instead of the new data like what is showing on the calendar here is a sample code https://jseditor.io/?key=update-appointment-properties the alert gets the data from the calendar after the setAppointmentProperty but the subject value remains the same after.
I also tried using delete and add appointment methods delete is working but addAppointment is not it doesn’t return errors too
Hi,
You can access the updated appointment in the jqxAppointment property of the object: ‘test.pop().jqxAppointment.subject’
See here: http://jsfiddle.net/um8503sh/Also, here is an example of adding an appointment: http://jsfiddle.net/um8503sh/1/
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Great thanks
@islavov one more thing how do I make the addAppointment work too? cause when I tried to use delete and add the appointment just gets deleted but won’t add again using addAppointment method
@svetslovav_borislavov I manage to replicate the issue on addAppointment on this link https://jseditor.io/?key=06c1c7674a7c11ed972cc4377264e2bc I’m not sure why its working on the code you provided but on the link above its not if you comment out from 121 – 124 you may see there is a result but when it deletes and trigger the addAppointment the appointment doesn’t seem to add back, what is the issue on its not adding back after getting deleted?
I think I get part of the issue now the id is changing after delete if I add back the same object again the id will be auto generated instead which is why I can’t get the result I needed is there a way to prevent this from happening?
Hi, I was working on your plugin for awhile now so far the jqxAppointment is working when I’m getting the data from getAppointments but on events like appointmentDoubleClick its really hard to track data from there. On event functions you are providing first parameter with objects that holds the data from calendar appointment, on jqxAppointment I’m getting different structure the structure is a bit confusing some of the data could be found directly on jqxAppointment and some could be found from jqxAppointment.boundAppointment do you have a better documentation that could provide details on this parameters? I was planning on making use of addAppointment method from the plugin but its not working and it would be helpful if addAppointment works cause it triggers the renderAppointment and rendered from the plugin which I can’t see getting triggered from setAppointmentProperty
Hi,
I see that the appointment is there, can you please send me a screenshot? I’ve tested it both from the link that you have provided and in jsfiddle.
You can send a screenshot and a sample project with the error here: svetoslav@jqwidgets.comFor getting an appointment’s property, I suggest you use the getAppointmentProperty method:
http://jsfiddle.net/he0a9t15/Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/Hi, I manage to replicate it here http://jsfiddle.net/cjobs236/76bqyj5n/92/ my issue with deleteAppointment and addAppointment once deleted it cannot be added back
I haven’t included on the code the getAppointments and jqxAppointment though but I think if delete and add do work expectedly that would somehow able to make it work even if I directly access data from getAppointments object or jqxAppointment I get but right now I can’t figure out a way to add back the appointment after it gets deleted
Hi,
My suggestion is to update the appointment and not delete and add it.
Could you, please use the ‘setAppointmentProperty’ method for updating it and ‘getAppointmentProperty’ for getting the values?
See the example of updating an appointment with the ‘setAppointmentProperty’: http://jsfiddle.net/vrgcLebo/If you need further assistance, let us know!
Best regards,
Svetoslav BorislavovjQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.