Incompatibility with limit and recurring events

If i set limit_end on my configuration, and I create a recurring event - I get a ton of errors (including browser lockups).

How do I make the app only add recurring events UP TO the limit_end?

Thanks,
Barry

Hi,

You couldn’t create recurring event later than limit_end date of the Scheduler. You can set date within the calendar limit_end date to input “end by” in the lightbox, then everything will work correctly.

I am still getting out of limit errors when i try to set a recurring event monthly or yearly when it extends beyond my current limit

for some reason - whenever i set a monthly recurring - it seems to throw the error:

screencast.com/t/SSonZGO4UN5W

That shows the behavior of what is happening. Any thoughts? I have set the end date and everything, but it still throws the error.

Configuration is below:



        scheduler.config.lightbox.sections = [
            { name:"description", height:130, map_to:"text", type:"textarea" , focus:true},
            { name:"recurring", type:"recurring", map_to:"rec_type", button:"recurring", form:"RecurringFormOverride" },
            { name:"time", height:72, type:"time", map_to:"auto"}
        ];

 $("#scheduler_here").dhx_scheduler({
            xml_date: "%Y-%m-%d %H:%i",
            api_date: "%Y-%m-%d %H:%i",

            prevent_cache: true,
            details_on_create: true,
            details_on_dblclick: true,
            occurrence_timestamp_in_utc: true,
            include_end_by: true,
            repeat_precise : false,
            full_day: true,
            time_step: 60,
            limit_start: new Date(<?= $campaign->start_date->format('Y') ?>  ,<?= $campaign->start_date->format('m') - 1 ?>,<?= $campaign->start_date->format('j') ?>, 0, 0, 0),
            limit_end: new Date(<?= $campaign->end_date->format('Y') ?>  ,<?= $campaign->end_date->format('m') - 1 ?>,<?= $campaign->end_date->format('j') ?>, 23, 59, 59),
            agenda_end : new Date (<?= $campaign->end_date->format('Y') ?>  ,<?= $campaign->end_date->format('m') - 1 ?>,<?= $campaign->end_date->format('j') ?>, 23, 59, 59 ),
            limit_view: true,
            check_limits: true,
            date: new Date(<?= $campaign->start_date->format('Y') ?>, <?= $campaign->start_date->format('m') - 1 ?>, <?= $campaign->start_date->format('j') ?>),
            mode: "month"
        });


scheduler.data_attributes = function () {
            var empty = function (a) {
                return a || "";
            };

            var bools = function(a) {
                return a || false;
            };

            return [
                ["id"],
                ["text"],
                ["start_date", scheduler.templates.xml_format],
                ["end_date", scheduler.templates.xml_format],
                ["rec_type", empty],
                ["event_length", empty],
                ["event_pid", empty],
                ["readonly", bools]
            ];
        };
    scheduler.attachEvent("onLimitViolation", function (id, obj) {
            var opts = {
                nofade: true,

                title: "Date out of range",
                message: 'The date you have selected is out of range for your campaign. Select dates between <?= $campaign->start_date->format('n/j/Y') ?> and <?= $campaign->end_date->format('n/j/Y') ?>.'
            };

            errorMessage(opts);

            return false;

        });


Hi,
When you try to set a recurring event monthly or yearly, you need to set a date not less than the date of the event which you want to make recurrent.
Example: open the sample and set for the “Event 1”:
docs.dhtmlx.com/scheduler/snippet/8f1806ee
Monthly:

  1. Repeat 21 day every 1 month, End by: 20/06/2017
  2. On 3 monday every 1 month, End by: 20/06/2017
    Yearly:
  3. Every 1 day July month, End by: 20/06/2017.
    Everything should work properly now.