ApplyToCalendar - Problem |
Post Reply |
Author | |
Aleksandar
Newbie Joined: 23 November 2011 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 23 November 2011 at 6:57am |
Hello to everybody,
I download ActiveX 2001 15.1.3 version and I want to make a Calendar in Multiple Schedules View.
I work in OpenEdge Enviroment.
I followed examples from Net, I mean I first Add 2 resources then 2 schedules and etc ...
This my source:
ASSIGN chCalendar = chCtrlFrame:CalendarControl.
chCalendarResourcesManager:AddResource('Peter',TRUE) .
chCalendarResourcesManager:AddResource('Aleks',TRUE) . chCalendarResourcesManager:AddDataProvider ("",6).
chDataProvider = chCalendarResourcesManager:GetDataProvider("").
chSchedules = chDataProvider:Schedules.
chSchedules:AddNewSchedule("Peter").
chSchedules:AddNewSchedule("Aleks"). chDataProvider:Save().
chResource = chCalendarResourcesManager:Resource(0).
chResource:Resource:SetDataProvider(chDataProvider, false).
ASSIGN ScheduleId = chSchedules:ITEM(0):Id.
chResource:Resource:ScheduleIDs:Add(ScheduleId). chResource:GenerateName = True. ASSIGN ScheduleId = chSchedules:ITEM(1):Id.
chResource:Resource:ScheduleIDs:Add(ScheduleId). chResource:GenerateName = True. chCalendarResourcesManager:ApplyToCalendar ( chCalendar ) . And here I got error message: "The Parameter is Incorect"
Am I missing something or ? Could Someone help me?
Thanks in advance.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |