Our pure JavaScript Scheduler component


Post by Alan »

I am trying to figure out what should be returned from the php server when making changes on a scheduler with a crud manager (with sync) and recurrence feature. Would you be able to add an example for this or provide more documentation? The recurrence demo does not show what a server should return, and the crud manager demo does include the recurrence feature.

For example, when I create a daily event, my scheduler only displays one event instead of one for each day. I believe it is because my server is not returning what the scheduler is expecting.

Also, when I make a change to a single event with a repeating series of events, what should be sent to and returned from the server?

Thank you

Post by sergey.maltsev »

Hi!

Currently we have no ready to use recurring demo with sync functionality.
But this should be quite easy to implement by adding event's recurrenceRule string field to be stored on server.

https://www.bryntum.com/docs/scheduler/#Scheduler/model/mixin/RecurringTimeSpan#field-recurrenceRule

Post by Alan »

Thank you for the quick reply. I am storing the recurrenceRule (and am using the AssignmentStore too). I just don't know what the UI expects to receive from the server in all cases, i.e. when creating a recurring event, updating/removing a single event within a recurring series, deleting an assignment in a repeating series, etc. I have implemented what I thought is needed based on the existing examples, but some things are not working exactly right when dealing with the recurring events. A full example with CrudManager, recurrence feature, and assignmentStore would be very helpful. Things work well when I do not select any repeating option.

I will follow-up this post with sample files for one of your demos for each issue I am experiencing. Thank you.

Post by sergey.maltsev »

Hi!

Only recurrenceRule string is required for the most of the recurrence feature needs to work with events.

Please provide working testcase so we can easily run and check what you expect.

Post by Alan »

I have updated the crudmanager umd demo, https://www.bryntum.com/examples/scheduler/crudmanager/index.umd.html, with the 3 files attached.
  • app.umd.js - added an assignmentStore, enabled the recurringEvents, and extended the endDate to show 6 more days on the scheduler
  • php/read.php - added an assignments section and moved resourceId values from events into assignments
  • php/sync.php - updated to handle assignments. The phantomId in the returned assignment eventId fields are assigned real eventId values
When I create a daily recurring event, the event only appears on the first day. I am expecting it to appear on every day that is visible in the scheduler, like in the recurrence example, https://www.bryntum.com/examples/scheduler/recurrence/. What am I doing wrong?

Thank you
Attachments
crudmanager-umd.zip
(2.55 KiB) Downloaded 141 times

Post by sergey.maltsev »

Hi!

RecurringEvents feature is not released yet for multiple assignments but it is already in development so would be in one of the next releases.

This is the issue you could subscribe to monitor it's state
https://github.com/bryntum/support/issues/308

Also this is issue for creating PHP demo which uses RecurringEvents feature and multiple assignments
https://github.com/bryntum/support/issues/309

As for now you won't be able to use RecurringEvents with assignmentStore yet.

RecurringEvents should work fine in php demo without assignmentStore.
Just add
    features : {
    ...
        recurringEvents : true
},
If you need initial demo data with it you could update this file
Scheduler/examples/php/php/resource/read.php

For example add "recurrenceRule" => "FREQ=DAILY" there.
    $_SESSION["eventdata"] = array(
        array("id" => 1, "resourceId" => 1, "name" => "Serve engine", "startDate" => "2018-05-21 08:00", "duration" => 12, "dt" => date("Y-m-d H:i:s"), "recurrenceRule" => "FREQ=DAILY"),
        ....
    );

Post by Alan »

Thank you. I will need this feature (recurringEvents with AssignmentStore) for my project in order to replace my current scheduler with yours.

Post by Alan »

I hope you all are staying healthy.

I was wondering if there were any updates on this (using RecurringEvents with AssignmentStore). I have not seen this task assigned to anyone or to a milestone. I was hoping to migrate my application to use your scheduler, but I cannot until this feature is implemented. Thank you

Post by sergey.maltsev »

Hi. Alan.

We have this on road map for Q2 this year.

Please note we're also available for Professional Services: https://www.bryntum.com/services

Post by arcady »

We have it in a branch. It still needs some testing but chances are very high that it will appear in the next major release of the scheduler.

Post Reply