Calendar list editing recurring events

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
pam.justice@lacnm.us
Posts: 6
Joined: Wed Nov 04, 2015

16 Jun 2016

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?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

17 Jun 2016

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.

pam.justice@lacnm.us
Posts: 6
Joined: Wed Nov 04, 2015

28 Jun 2016

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

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.

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

Thanks

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 Jun 2016

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.

pam.justice@lacnm.us
Posts: 6
Joined: Wed Nov 04, 2015

29 Jun 2016

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;
});

pam.justice@lacnm.us
Posts: 6
Joined: Wed Nov 04, 2015

29 Jun 2016

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?

pam.justice@lacnm.us
Posts: 6
Joined: Wed Nov 04, 2015

29 Jun 2016

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);

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests