문제

I am trying to schedule a Webi report using SDK, I can schedule Once, Monthly and other types.

Could anyone tell me how to schedule a Webi report weekly?

I can set the schedule type to WEEKLY and start and end date, but there is no API available for setting days of the week on which report will schedule.

Also, user doesn't have access to any Calendar.

Thanks.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top