search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

I would also like to allow the users to edit the recurring events and subsequently the recurring rule using the inbuilt support AND the manual events ..

Asked by mrplatypus
8 years ago.

Dan and Team,

I'm in the process of converting over to manual recurrent events ( as previous postings will concur )...

I can create many standalone events by storing the relevant values..
I am happy to move the events, delete individual events or delete series of events..

I would also like to allow the users to edit the recurring events and subsequently the recurring rule using the inbuilt support AND the manual events ..

The javascript supplied (see below), uses the not e.recurrent method to allow the users to display to edit the event or the whole series of events...

        function setRecurringBooking(e) {
            // it's a normal event
            if (!e.recurrent()) {
                edit(e);
                //alert("it's a normal event!");
                return;
            }

            // it's a recurrent event but it's an exception from the series
            if (e.value() !== null) {
                edit(e);
                //alert("it's a recurrent event and exception from the series!");
                return;
            }

            var modal = new DayPilot.Modal();
            modal.top = 150;
            modal.width = 300;
            modal.height = 150;
            modal.opacity = 0;
            modal.border = "10px solid #d0d0d0";
            modal.closed = function () {
                if (this.result != "cancel") {
                    //alert('result: ' + this.result);
                    edit(e, this.result);
                }
            };

            modal.showUrl("RecurrentEditMode.html");
        }

As my implementation doesn't use the e.recurrent method - how can I modify my code to set the e.recurrent value?

Please advise.

Thanks

Dave/mrplatypus

Answer posted by Dan Letecky [DayPilot]
8 years ago.

For events that you have expanded manually you need to store this information in custom fields (DataTagFields) so you can access them later. You will not be able to identify them using e.recurrent() because to DayPilot they look like normal events.

Answer posted by mrplatypus
8 years ago.

Dan,

Thanks for your advice.
With your assistance I believe that I am on the right track now.

Please, close the call.

Thanks

Dave/mrplatypus

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.