Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Recurring event saved to Calendar list but not visible in the Calendar view

When I use UpdateListItems to save a recurring event to a Calendar it gets saved correctly (the correct radio buttons and values are set) but it is only visible in the All Events view, not the default Calendar view. However, when I open the series up and click on the OK button, it then becomes visible in the Calendar view.

My code is as below:

var xmlData = '<recurrence><rule><firstDayOfWeek>su</firstDayOfWeek><repeat><daily dayFrequency="1" /></repeat><repeatForever>FALSE</repeatForever></rule></recurrence>';
xmlData = htmlEscape(xmlData);

    $().SPServices({
            operation: "UpdateListItems",
            async: false,
            batchCmd: "New",
            listName: "Meeting Room Calendar",
            valuepairs:[["EventDate", "2014-02-03T09:30:00Z"],["EndDate", "2014-08-10T10:00:00Z"], ["Preferred_x0020_Meeting_x0020_Ro", "EAG ST ROOM 1"], ["EventType", "1"], ["fRecurrence", "1"], ["Title", "Test Recurring"], ["fAllDayEvent", "0"], ["RecurrenceData", xmlData]],
            completefunc: function (xData, Status) {
                //Do nothing
            }
    }); 
Does anyone know how I can make it visible within the Calendar view without having to open the series and click the OK button?

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>