Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Problem with the Calendar Control filters
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with the Calendar Control filters

 Post Reply Post Reply
Author
Message
ecl2009 View Drop Down
Newbie
Newbie


Joined: 14 July 2009
Location: Spain
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ecl2009 Quote  Post ReplyReply Direct Link To This Post Topic: Problem with the Calendar Control filters
    Posted: 14 July 2009 at 7:20am

Hello, I’ve got a problem with the Calendar control filters.

 

This is a very simple example, applied to the code that comes with the control (Against  SQLServer).

 

I have three events in the “CalendarEvents” table:

EventID               Subject                                RecurrenceState             RecurrencePatternID

1                             Recurrence                      1                                            1

2                             Event number 1               3                                            1

3                             Event number 2               0                                            0

 

As you can see, I have a recurrence, an exception in that recurrence, and a free event. If I modify the “MakeRetrieveDayEventsSQL” function in the “SQLDataHelper” class, and then add the following line:

 

strSQL=strSQL + “ And subject like ‘%Event%’”

 

The calendar draws itself with the number 3 event ( Event number 2), but  the number 2 event (Event number 1) doesn’t appear.

 

I think that its caused because the filter is not loading the master recurrence, so is not executing the code “DoReadRPattern” from “m_pCalendar” that is also calling the function.

  

My question is: “Because I don’t  receive the recurrence in the SQL and the exceptions are never thrown, so the control never draws itself,  how should I apply the filters to avoid this limitation of the control?

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.156 seconds.