Print Page | Close Window

scheduling

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5866
Printed Date: 14 July 2025 at 9:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: scheduling
Posted By: Linsum
Subject: scheduling
Date 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



Replies:
Posted By: sserge
Date 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


Posted By: Linsum
Date 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


Posted By: sserge
Date 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


Posted By: jcbaena
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net