Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsMonthly Calendar Working too hardMonthly Calendar Working too hard
Previous
 
Next
New Post
8/4/2006 11:23 AM
 
Here is a simplified version of the select statement in the stored procedure EventsGetByRange. This is the SP that the monthly calendar uses.

SELECT * FROM Events
WHERE ((EventDateBegin BETWEEN @BeginDate AND @EndDate) AND (Events.ModuleID = @ModuleID))
     OR
    ((EventDateEnd >= @BeginDate) AND (Events.ModuleID = @ModuleID))

In other words the select statement is grabbing every event that ends after @BeginDate. But that set of events already includes all the events that begin between @BeginDate and @EndDate.

Assuming that the EventDateEnd is always after the EventDateBegin the first half of the WHERE statement can be eliminated. Can someone see a flaw in my logic?

This casts a really wide net for catching the events, but I don't see a way around this unless we split up the recurring events.

Questions and Comments Welcome.

Dan

 
New Post
8/10/2006 2:02 PM
 
I believe this is a better WHERE statement for selecting a date range of events.

WHERE (EventDateBegin <= @EndDate)
    AND (EventDateEnd  >= @BeginDate)
    AND (Events.ModuleID = @ModuleID)
    AND (Approved = 1)

Basically the event has to start before the end date AND end after the start date.

Questions and comments welcome.

Dan
 
New Post
8/10/2006 2:57 PM
 

At first glance I don't see the problem with your logic. 

 

Please log it in Gemini so it doesn't get lost and I will try to confirm that there are no issues and update the sproc accordingly for the next version.


Jeremy White
DNN Core Team Alumni
 
New Post
8/10/2006 3:05 PM
 

Dan, Please contact me offline at jeremy.white@dotnetnuke.com.  I have an Idea that I'd like to discuss.

 


Jeremy White
DNN Core Team Alumni
 
New Post
8/10/2006 4:28 PM
 
Just FYI, I have make the above change to my Stored Procedure and it works well so far.

I have not used "Gemini" (support.dotnetnuke.com) before, do I need a separate Gemini login account? After I login I assume I would then add my suggestion as a potential "Enhancement" in the "Module:Events" area. Correct?

Thanks

Dan
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsMonthly Calendar Working too hardMonthly Calendar Working too hard


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out