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 ForumsEventsEventsRecurring Event Details displays 1/1/0001Recurring Event Details displays 1/1/0001
Previous
 
Next
New Post
7/15/2011 9:56 AM
 
I should also point out that when i recreated it it said I created the event today at 12:00am when it was really 8:55am. The time zone is set correctly in the module. I'm not sure if the issue is related or not.
 
New Post
7/16/2011 7:28 AM
 
Hi,

This is caused by a minor bug introduced by 5.2.0. It can be fixed by running the following SQL in the Host/SQL dialogue.

Make sure to include the carriange return after the last GO.

Tick Run as Script, and the click Execute.
-----------------

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}[{objectQualifier}EventsGetByRange]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)

drop procedure {databaseOwner}[{objectQualifier}EventsGetByRange]

GO

/**** EventsGetByRange ****/

CREATE PROCEDURE {databaseOwner}[{objectQualifier}EventsGetByRange]

(

@ModuleIDs nvarchar(1024),

@BeginDate datetime,

@EndDate datetime,

@CategoryName nVarchar(50)

)

AS

SET DATEFORMAT mdy

CREATE Table #EventIDs

(EventID Int, NoOfRecurrences Int, LastRecurrence DateTime)

 

INSERT INTO #EventIDs (EventID, NoOfRecurrences, LastRecurrence)

SELECT DISTINCT e.EventID, Count(E2.EventID) as NoOfRecurrences, Max(E2.EventTimeBegin) as LastRecurrence

FROM {databaseOwner}[{objectQualifier}Events] E

LEFT OUTER JOIN {databaseOwner}[{objectQualifier}EventsMaster] M ON E.ModuleID = M.SubEventID

LEFT JOIN {databaseOwner}[{objectQualifier}Events] as E2 ON E.RecurMasterID = E2.RecurMasterID

WHERE ((E.EventTimeBegin < DATEADD(DAY,1,@EndDate) AND DATEADD(minute,E.Duration,E.EventTimeBegin) >= @BeginDate) OR

(E.EventTimeBegin >= @BeginDate AND E.EventTimeBegin < DATEADD(DAY,1, @EndDate)))

AND E.Approved = 1

AND E.Cancelled = 0

AND (E.ModuleID in (SELECT * FROM {databaseOwner}[{objectQualifier}SplitIDs](@ModuleIDs)))

GROUP By E.EventID

SELECT E.PortalID, E.EventID, E.RecurMasterID, E.ModuleID, E.EventDateBegin, E.EventDateEnd,

E.EventTimeBegin, E.Duration, E.EventName, E.EventDesc,

E.Importance, E.CreatedDate,

CreatedBy = U.DisplayName,

E.CreatedByID,

E.Every,

E.Period,

E.RepeatType,

E.Notify,

E.approved,

E.Signups,

E.MaxEnrollment,

(Select Sum(NoEnrolees) from {databaseOwner}[{objectQualifier}EventsSignups] WHERE EventID = E.EventID and E.Signups = 1) as Enrolled,

ET.NoOfRecurrences,

ET.LastRecurrence,

E.EnrollRoleID,

E.EnrollFee,

E.EnrollType,

E.PayPalAccount,

E.Cancelled,

E.DetailPage,

E.DetailNewWin,

E.DetailURL,

E.ImageURL,

E.ImageType,

E.ImageWidth,

E.ImageHeight,

E.ImageDisplay,

E.Location,

c.LocationName,

c.MapURL,

E.Category,

b.CategoryName,

b.Color,

b.FontColor,

E.Reminder,

E.TimezoneOffset,

E.SendReminder,

E.ReminderTime,

E.ReminderTimeMeasurement,

E.ReminderFrom,

E.SearchSubmitted,

E.CustomField1,

E.CustomField2,

E.EnrollListView,

E.DisplayEndDate,

E.AllDayEvent,

E.OwnerID,

OwnerName = O.DisplayName,

E.LastUpdatedAt,

LastUpdatedBy = L.DisplayName,

E.LastUpdatedID,

RMOwnerID = r.OwnerID,

r.RRULE,

E.OriginalDateBegin,

E.NewEventEmailSent

FROM {databaseOwner}[{objectQualifier}Events] E

inner join {databaseOwner}[{objectQualifier}EventsRecurMaster] AS r on E.RecurMasterID = r.RecurMasterID

left outer join {databaseOwner}[{objectQualifier}Users] U on E.CreatedByID = U.UserID

left outer join {databaseOwner}[{objectQualifier}Users] O on E.OwnerID = O.UserID

left outer join {databaseOwner}[{objectQualifier}Users] L on E.LastUpdatedID = L.UserID

left join {databaseOwner}[{objectQualifier}EventsCategory] b on E.Category = b.Category

left join {databaseOwner}[{objectQualifier}EventsLocation] c on E.Location = c.Location

left join #EventIDs ET on E.EventID = ET.EventID

WHERE E.EventID in (Select EventID from #EventIDs)

AND (b.CategoryName = @CategoryName or @CategoryName = N'')

GO

 

 


DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
7/16/2011 7:29 AM
 
Bug posted here - http://dnnevents.codeplex.com/workite... and fix included in 5.2.1

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
8/29/2011 1:12 PM
 
Hey Roger,

I tried running the script and it erased all the events (thank god for backups, right?).

Any idea when 5.2.1 with this fix will be released?
 
New Post
9/3/2011 8:18 AM
 
Hi,

Sorry, been away on holiday. The script won't have deleted the events, but since it is editing the main stored procedure that retrieves data from the database, if it doesn't run correctly it will cause not events to be displayed.

Please try running again ensuring that you get a succesful message when it has been run. If not, please post back here.

Thanks
Roger

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsRecurring Event Details displays 1/1/0001Recurring Event Details displays 1/1/0001


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