Print Page | Close Window

DoRetrieveDayEvents 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=15043
Printed Date: 06 October 2024 at 7:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DoRetrieveDayEvents with Multiple Resources
Posted By: phainge
Subject: DoRetrieveDayEvents with Multiple Resources
Date Posted: 26 August 2009 at 5:30am
Hi,
 
I'm using a custom data provider with multiple resources.  I'm finding that the DoRetrieveDayEvents event is only being fired for the first resource.  Here's what I'm doing:
 
I add the first resource and call the calendar control Populate method, which fires the DoRetrieveDayEvents event which loads the events for that resource.  But when I add another resource and call the calendar control Populate method again, the DoRetrieveDayEvents is not being fired.  I can force the DoRetrieveDayEvents to fire if I first call the Dataprovider.ClearCache method, but this removes from the calendar all the events for the other resource.  Does this mean that whenever I add a new resource I have to clear the cache and reload the events for all resources?
 
Peter


-------------
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1
Visual Basic 6.0 SP4



Replies:
Posted By: johnp
Date Posted: 31 August 2009 at 10:05am
Phainge,
 
I am using custom data provider with multiple resources as well. I add all of the resources before populating the calendar and it all seems to work okay.


Posted By: phainge
Date Posted: 31 August 2009 at 2:03pm
Hi johnp,
 
Thanks, but my problem is that I can't add all of the resources up front before populating the calendar, as the resources are variable - basically there is a list of optional calendars from which the user can choose which ones they want to see in the calendar control, so I have to add/remove these resouces dynamically as they are selected/de-selected by the user.
 
Peter


-------------
Xtreme SuitePro (ActiveX) 15.1.3
Windows 7 Pro (64bit) SP1
Visual Basic 6.0 SP4



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