Print Page | Close Window

Custom Calendar with Multiple Resources

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=18401
Printed Date: 23 November 2024 at 5:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Calendar with Multiple Resources
Posted By: abutty
Subject: Custom Calendar with Multiple Resources
Date 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




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


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



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


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




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