Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Multiple resources using Custom Provider..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple resources using Custom Provider..

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


Joined: 26 March 2008
Location: Philippines
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote mc2x Quote  Post ReplyReply Direct Link To This Post Topic: Multiple resources using Custom Provider..
    Posted: 30 March 2008 at 1:46am
Hi all,

I am so lost and I don't know what to do anymore. Been searching the forum for the last three days about calendar activex but unfortunately my problem doesn't seem to have a clear solution.

My problem is about using custom data provider in the calendar
control. I wanted to use mssql as my data provider. I currently
have "schedules", "calendarevents", and "calendarrecurrencepatterns"
tables in my mssql. Data from calendarevents table have a parent
record from the schedules table. What I basically want is to show
the events from the calendarevents table under their corresponding
schedules. I have seen that this has no problem using the built-in
data providers as shown in the examples. But in mssql as the data
provider I find it rather confusing.

strcon = "Provider=custom;DSN=Calendar_SQLServer"

This is the connection string I'm using. Even though I have schedules
table in mssql I don't know why the statement:

    Dim pSchedules As CalendarSchedules
    Set pSchedules = pRes.DataProvider.Schedules

pSchedules.Count always return 0 when in fact I have around 5 records
in the schedules table. What I'm doing is that I manually loop thru
the schedules table and add the schedules manually to the resource
array.

This is where my main problem begins. After I have added the schedules
to the resource array, how in the world do I show the events under
that schedules in the calendar? I hope anyone could shed some light on me.

Thanks in advance.
Back to Top
Stilki View Drop Down
Groupie
Groupie


Joined: 27 May 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote Stilki Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 12:46am
 
Have  a look at this posting on multiple resources and multiple schedules.
Even though it is using Access databases, the sample(s) attached show you how to load schedules. The backend database does not matter.
 
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.158 seconds.