jQWidgets Forums
jQuery UI Widgets › Forums › Scheduler › jqxScheduler getAppointment Results
Tagged: broken chain of recurrent appointsments, calendar, exceptional appointments, jqxScheduler, recurrent appointsments
This topic contains 17 replies, has 5 voices, and was last updated by Peter Stoev 5 years, 3 months ago.
-
Author
-
We tried jqxScheduler, but when adding a new appointment we faced an
issue to get a end date in repeat section (recurrenceRule – UNTIL).
Kindly give a short reply.Thank you.
Hi vivekanandhan,
Unfortunately, we do not understand what your issue is. Could you elaborate with jqwidgets/jseditor example and more detailed information?
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHere i am adding new appointment , then need to store the details in database.. but unfortunately.. i didn’t found “Repeat End date” in End Panel.
for eg: in above image “Create appointment popup” i need to fetch the data of “29-02-2016” under end panel.. from the object of arraysHi vivekanandhan,
The recurrence rule information is stored as a string when you use getDataAppointments method. In the current case, you can still call toString() of the recurrenceRule object to get the information you’re looking for.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter Stoev,
I got recurrence rule information but in that i cant find end date value. can you please tell me the variable name of repeat end date under recurrence rule.
Thanks.
Hi, could you please give me an example of how to persist in a database full agenda with a appointment repeatContainer in event Add?
thxs$(“#scheduler”).on(‘appointmentAdd’, function (event) {
var args = event.args;
var appointment = args.appointment;
});Hi pablosym,
You can use jQuery’s AJAX function to send any client data to a server. In the case of the Scheduler, that will be the appointment’s data.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThanks Peter, but as I get all the recurrence of a appoiment?
Could you give me an example of thatHi pablosym,
You can get only the recurrence String in ICAL format by using the toString method.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comWe’re using jQWidgets v4.4.0 (2016-Nov) at the moment.
The jqxscheduler is currently in use. For this I organized storing all appointment data via ajax in data base.
When new appointments are created the appointment ID is created by data base (auto increment integer value) and the dataAdapter is resetted to force a refresh. This allows me to use my own appointment IDs.This works perfectly until a single appointment of the chain of recurrent appointments is moved outside the chain. The jqxscheduler creates then a new appointment based on the “parent” appointment. It’s ID then is for example “1.1.9a5b3947” while the root appointment’s ID is “1”.
The issue I found is that both functions $(“#scheduler”).jqxScheduler(‘getAppointments’)
and $(“#scheduler”).jqxScheduler(‘getDataAppointments’) don’t supply those “sub” appointments. The only access to these kind of appointments is the “appointmentChange” event after it has been modified.My questions here are:
1. how to get data of those “sub” appointments as part of the recurrent appointments, too?
2. how to store the data of those “sub” appointments so that it can be reloaded via ajax from the data base and be redrawn? Is there an example that builds this situation from an array data type?Many thanks for your support
Franz Honke
Hi Franz Honke,
1. exceptions are pushed to the exceptions member of a recurrent appointment.
2. We do not have such example.Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter Stoev,
thanks for your very quick response!
Unfortunately the “recurrenceException” property does not store any information about one of the modified recurrent appointments (child not parent)! Would you check what happens to a recurrent appointment (parent) after resetting and changing one of it’s recurrence appointments’ propperties (“date” or “location” or …) again?The “recurrenceException” property obviously will then not be modified. It stores the days which have to be excluded from the series only. My situation stated is not stored here. The modified item itself is not available by “getAppointments” and “getDataAppointments”! The jqxscheduler behaves as if those moved single items from the series are real appointments but they are not available by any methods or functions.
I am able to store this special appointment in the data base but the expected appointment structure is not clear! There is no hint in the documentation solving this at the moment!
Example:
Series1:
Start 20th May 2016,
repeat each day,
whole day
Exception: 22th May 2016, 23th May 2016After moving 21th May 2016 of this series to 10th May 2016 it is still part of the series but behaves like a new additional appointment! But it is not accessable by the methods of jqxscheduler. Only “appointmentChange” event allows access to this appointment and it’s propperties. I can store this appointment as a new one but it can not be loaded again from the data base and linked to the “parent” appointment again. The widget allways shows those modified as part of the related series but I do now know how to prepare the data source for this!
Best regards
Franz Honke
Hello Peter Stoev,
I now can iterate object “$(“#scheduler”).jqxScheduler(‘getAppointments’)”. The exceptions details of recurrent appointments can be red by reading “exceptions” object.
Unfortunately there is obviously no way restoring these “exceptions” data so that JQXWIDGET is able to rebuild my scenario!
The field “recurrenceException” is easy to store and restore but the further details not stored at “recurrenceException” are available only at “exceptions” object which seems not being respected by any other appointment data field!How can this now be handled or fixed?
Many thanks for your support and important hints!
Best regards
Franz HonkeHi Franz Honke,
Unfortunately, there is no way to import the exceptions with all their settings. Only exception dates can be restored as shown in the demos.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter Stoev,
will this be realized soon to allow integrity?
I am sure not being the only one requiring this functionality because is essential.Best regards
Franz Honke
-
AuthorPosts
You must be logged in to reply to this topic.