Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - ApplyToCalendar - Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ApplyToCalendar - Problem

 Post Reply Post Reply
Author
Message
Aleksandar View Drop Down
Newbie
Newbie


Joined: 23 November 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aleksandar Quote  Post ReplyReply Direct Link To This Post Topic: ApplyToCalendar - Problem
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.