Calendar list editing recurring events

rss

Posted by [email protected] - Jun 16 ’16 at 03:48

I have created New, Edit and Display forms for a Sharepoint 2013 Calendar list and now seem to be unable to edit a recurring event by using Edit Series.  I only see the Edit Item option.  When I click on that option and look at the Recurrence field I notice the "Start Date" field is blanked out even though I originally set a starting date for the duration of the recurrence.  The End By field still has the value I originally set.  If I click on Save to save the item it will not be saved unless I re-enter a value for the Start Date field on the Recurrence.  What do I need to do in order to make the recurrence keep the original value set in the Start Date field and how do I get back the Edit Series option on my forms?

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 20 days
    #1 by Dmitry Kozlov Jun 17 ’16 at 02:52

    Hi,

    I've just tested the case and it seems it's working properly for me: Edit Series button appears in the ribbon of both Edit and Display forms for recurrent events and the Start Time works as expected as well.

    First, make sure that you put the following fields onto your form in Forms Designer: Title, Start Time, End Time, All Day Event, Recurrence.

  • Member
    Member for: 3 years 8 months 16 days
    #2 by [email protected] Jun 28 ’16 at 03:01

    [#1]: Thank you for testing.  I added all the fields you referenced to my form but I still don't see the "Edit Series" option.

    Display form ribbon

    Not sure if I am adding the image correctly to show my screen.  It is on Google Drive and shared with anyone who has the link so I also added the hyperlink to the location.

    The Recurrence is still loosing the Duration Start Date.

    Display Form recurrence screen

    Let me know if you can't access the images.

    Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 20 days
    #3 by Dmitry Kozlov Jun 29 ’16 at 05:04

    [#2]: Hi Pam,

    Unfortunately, I cannot see the images. Please, note that the 'Edit Series' is visible for individual events in series. Make sure that you opened the recurrent event.

  • Member
    Member for: 3 years 8 months 16 days
    #4 by [email protected] Jun 29 ’16 at 11:58

    Sorry about that image stuff.  I'm too new to Google Drive.  Anyway, I tried to access any one of the occurences of the series from a Calendar view but got an error message with a Correlation ID. I looked up the number and found the following error in the log:

    Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: Item does not exist. It may have been deleted by another user.     at Microsoft.SharePoint.ApplicationPages.Calendar.CalendarInstanceQuery.Retrieve(SPList list, String recurId)     at Microsoft.SharePoint.SPContext.get_Item()     at Microsoft.SharePoint.SPContext.ContentTypeInternal(String contentTypeId)     at Microsoft.SharePoint.WebPartPages.ListFormWebPart.ShowRibbon()     at Microsoft.SharePoint.WebPartPages.ListFormWebPart.OnInit(EventArgs e)  (This goes on and on with stuff I don't understand)  This might be because the duration start date isn't getting saved but I'm just guessing on that. Here is my javascript code for the Display.aspx form (could I be doing something in here that's messing it up? There's not much to it.)  I'm hidding some fields because they are not relevant to the application.

    $('#fd_tabcontrol-0').tabs('option', 'active', 0);
    $('.fd_field[fd_name="fAllDayEvent"]').hide();
    $('.fd_field[fd_name="Location"]').hide();
    //set new item tab control to first tab
    fd.onsubmit(function() {
    $.cookie('fd_tabcontrol-0', 0);
    return true;
    });

  • Member
    Member for: 3 years 8 months 16 days
    #5 by [email protected] Jun 29 ’16 at 01:36

    I know what the problem is now.  My customer wanted me to set the End Date programatically so no one could request an event within the same day the request is made. (No rush jobs today).  This isn't a problem for requests that don't need a recurrence.  But for those that are recurring it is causing an issue in that the programming is interferring with the way Sharepoint uses the Start and End date to set the durations.  I need a way to code it so that if a person wants to create a recurring event my code for setting the EndDate will blank out the date or at least assign what is set in the EndDate duration portion of the recurrence configuration.  Any ideas?

  • Member
    Member for: 3 years 8 months 16 days
    #6 by [email protected] Jun 29 ’16 at 01:38

    Here is my code for setting the EndDate programatically.

    //set the Preferred Due Date to tomorrow at 5PM - user can change if needed
    var calcDate = new Date();
    calcDate.setDate(calcDate.getDate());
    var Month = calcDate.getMonth() + 1;
    var Day = calcDate.getDate() + 1;
    var Year = calcDate.getFullYear();
    var vDueDate = Month + "/" + Day + "/" + Year + ":17:00";
    var d = new Date(vDueDate);
    fd.field('EndDate').value(d);

Displaying 1 to 6 of 6 messages