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

Custom Calendar with Multiple Resources

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

Joined: 16 May 2009
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote abutty Quote  Post ReplyReply Direct Link To This Post Topic: Custom Calendar with Multiple Resources
    Posted: 18 May 2011 at 7:49am
Does anybody have any samples of using the calendar with a custom data provider and using multiple resources in VB2008 (other than the codejock sample which I can't open as I don't have VB6)?
I am having difficulty getting the DoXXX events to fire, so if somebody could point me in the right direction, I would appreciate it.

Many thanks in advance.

Product: Xtreme SuitePro (ActiveX) version 15.1.2
Platform: Windows 7 (64bit) - SP 1
Language: Visual Basic 9

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2011 at 2:01pm
What stings do you use for provider?  This string should cause the event to fire.
 
    ConnectionStringCustom = "Provider=custom;DSN=Custom_DB"
    CalendarControl.SetDataProvider ConnectionStringCustom
Back to Top
abutty View Drop Down
Newbie
Newbie
Avatar

Joined: 16 May 2009
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote abutty Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 5:38am
Yes, I am using "Provider=custom;".
Just to clarify a little, the events are loaded and displayed ok, but if I try to edit a recurrence event the DoReadRPattern does not fire?
When using a custom provider do you need to code ALL of the DoXXX events to do something and do they need to be in a perticular order?
Product: Xtreme SuitePro (ActiveX) version 15.1.2
Platform: Windows 7 (64bit) - SP 1
Language: Visual Basic 9

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2011 at 2:16pm
Incase anyone needs this, a new Custom Calendar sample was added to show how to work with a custom data provider including recurrences and multiple-schedules.

Here is a note about recurrences and custom providers:

ONLY in memory\built-in providers with the master event store the recurrence patter.

  ' "process_RecurrenceState" and "process_RecurrencePatternID" properties
  ' are used to process master events.
  '
  ' If they are set and RecurrenceState is Master Data provider will
  ' fire DoReadRPattern event and make event as Master.
  ' And it will also generate ocurrences for RetrieveDayEvents method.
  '
  ' These properties are temporary and they will be removed by data provider.
  '
  ' If these properties are not set the data provider will expect that the master event
  ' is already completed - CreateRecurrence method is called and
  ' Recurrence pattern is set.
  '
  ' This mechanism is usefull for DB data providers, when events and patterns
  ' are stored separately (in tables).
  ' But if events are stored in some memory collection or array
  ' it should not be used because the master event store recurrence pattern inside.
Back to Top
abutty View Drop Down
Newbie
Newbie
Avatar

Joined: 16 May 2009
Location: United Kingdom
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote abutty Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2011 at 2:38pm
I've looked throught he articles and tutorials and can't find any reference to a new calendar sample.
Does the latest ActiveX suite  have to be downloaded to get this new sample or is there some other way of getting to it?

Product: Xtreme SuitePro (ActiveX) version 15.1.2
Platform: Windows 7 (64bit) - SP 1
Language: Visual Basic 9

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.141 seconds.