It's unlike the other modes. You have to get the ICalendarRunDays object and add days into it.
Assuming you're using the Java SDK, and you have the object's ISchedulingInfo
as iSched
:
iSched.setType(CeScheduleType.CALENDAR);
iSched.getCalendarRunDays().add(ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, java.util.Calendar.MONDAY, ICalendarDay.ALL);
iSched.getCalendarRunDays().add(ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, ICalendarDay.ALL, java.util.Calendar.WEDNESDAY, ICalendarDay.ALL);
This is the "proper" way to do it. You could replace all the ICalendarDay.ALL
references with -1
.