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

scheduling

 Post Reply Post Reply
Author
Message
Linsum View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2006
Location: Malaysia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Linsum Quote  Post ReplyReply Direct Link To This Post Topic: scheduling
    Posted: 21 December 2006 at 4:34am

how can I create scheduling like 'free-/busy' in Outlook where we can see clearly whether our attendees free at that time when creating the 'meeting request'. is it possible with version 10.3.1.

Linsum
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2006 at 1:39pm
Calendar control doesn't have such built-in functionality.

However, you can create it by yourself. As a main method which you'll have to use for that is DataProvider.RetrieveDayEvents.

--
WBR,
Serge
Back to Top
Linsum View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2006
Location: Malaysia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Linsum Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2006 at 2:26am
Thanks for your reply. can you provide a sample on that. I hope you can since I'm new to all this 'beautiful' component that your company provided.
 
I'm using VB6.
Linsum
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2006 at 1:17pm
The function below helps to filter events for a single schedule.
Than use Event StartTime/EndTime to find busy/free time ranges for each schedule.
 

Function GetDayEvents(pCalendarDataProvider As CalendarDataProvider, dtDay As Date, nScheduleID As Long) As Collection
    Dim arSchEvents As New Collection
    Dim pEv As CalendarEvent
    Dim pEvents As CalendarEvents
    Set pEvents = pCalendarDataProvider.RetrieveDayEvents(dtDay)
   
    For Each pEv In pEvents
        If pEv.ScheduleID = nScheduleID Then
            arSchEvents.Add pEv
        End If
    Next
 
    Set GetDayEvents = arSchEvents
End Function


ps: GUI write by yourself

--
WBR,
Serge
Back to Top
jcbaena View Drop Down
Newbie
Newbie
Avatar

Joined: 20 July 2006
Location: Spain
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcbaena Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2008 at 12:29pm
I dont understand this example. I have many schedules and i want to show only the events of the userId logged in my app (Schedule iD=1).

Where do i have to put that code? In with event?
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.203 seconds.