Event collection |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 25 April 2007 at 1:24pm |
I created an event filtering method so I can selectively display the events I want based on the criteria I set. The objective is to remove events that have been filtered from the display (while not removing them from the database).
All works well and I have a collection of eventID's from another table that I will use to filter from. The problem I have run into is that I'm not sure where to find the event collection that the calendar is actively using. Are these loaded from the database every time they are required (such as in "Populate")? I tried chasing the data member m_arEvents around the code but haven't found an accessor to it so I'm not sure that's what I am looking for. So my questions are: 1. Is there a collection of events, or event pointers that identify the currently used (displayed) event objects? 2. Is there an accessor to this collection from one of the classes? If so, I could use a nudge in the right direction as to finding it. 3. If there is no collection, then is it correct to assume the best approach would be to reload all the events from the database and filter them at that time? Thank you for any assistance that anyone can provide. |
|
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
|
Ok.. I'm assuming no one else knows what I'm talking about or if they do it's a trade secret
Maybe if I rephrase the question: Is there a way to traverse an XTPCalendarView's Calendar Events? (Other than going directly to the database and grabbing the records) |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Basing on a hierarchy of views and events you can iterate them in a following way. I've just tried this method:
-- WBR, Serge |
|
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 |