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

DoRetrieveDayEvents with Multiple Resources

 Post Reply Post Reply
Author
Message
phainge View Drop Down
Groupie
Groupie
Avatar

Joined: 03 July 2009
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote phainge Quote  Post ReplyReply Direct Link To This Post Topic: DoRetrieveDayEvents with Multiple Resources
    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
Back to Top
johnp View Drop Down
Groupie
Groupie
Avatar

Joined: 21 February 2008
Status: Offline
Points: 49
Post Options Post Options   Thanks (0) Thanks(0)   Quote johnp Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
phainge View Drop Down
Groupie
Groupie
Avatar

Joined: 03 July 2009
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote phainge Quote  Post ReplyReply Direct Link To This Post 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
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.