Custom Calendar with Multiple Resources |
Post Reply |
Author | |
abutty
Newbie Joined: 16 May 2009 Location: United Kingdom Status: Offline Points: 4 |
Post Options
Thanks(0)
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
What stings do you use for provider? This string should cause the event to fire.
ConnectionStringCustom = "Provider=custom;DSN=Custom_DB"
CalendarControl.SetDataProvider ConnectionStringCustom |
|
abutty
Newbie Joined: 16 May 2009 Location: United Kingdom Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
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. |
|
abutty
Newbie Joined: 16 May 2009 Location: United Kingdom Status: Offline Points: 4 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |