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 ForumsEventsEventsDuplicate results for "my Enrollments"Duplicate results for "my Enrollments"
Previous
 
Next
New Post
2/2/2010 4:15 AM
 

Running this in the Host/SQL dialogue, with Execute as Script ticked, should solve the problem. This fix will be in 5.0.4.

/** EventsSignupsMyEnrollments **/

ALTER PROCEDURE {databaseOwner}{objectQualifier}EventsSignupsMyEnrollments

(

@ModuleID int,

@UserID int

)

AS

SET DATEFORMAT mdy

Select s.EventID, s.SignupID, s.ModuleID, s.Userid, s.Approved,

u.displayName as UserName, u.Email,

c.EventTimeBegin, DATEADD(mi, c.Duration, c.EventTimeBegin) as EventTimeEnd ,c.EventName,c.Importance,c.Approved as EventApproved,

c.MaxEnrollment,

(Select count(*) from {databaseOwner}{objectQualifier}EventsSignups WHERE EventID = c.EventID and c.Signups = 1) as Enrolled,

PayPalStatus,

PayPalReason,

PayPalTransID,

PayPalPayerID,

PayPalPayerStatus,

PayPalRecieverEmail,

PayPalUserEmail,

PayPalPayerEmail,

PayPalFirstName,

PayPalLastName,

PayPalAddress,

PayPalCity,

PayPalState,

PayPalZip,

PayPalCountry,

PayPalCurrency,

PayPalPaymentDate,

PayPalAmount,

PayPalFee,

c.TimeZoneOffset

from {databaseOwner}{objectQualifier}EventsSignups s

Left Join {databaseOwner}{objectQualifier}Users u ON s.UserID = u.UserID

Left Join {databaseOwner}{objectQualifier}Events c ON s.EventID = c.EventID

Left Outer Join {databaseOwner}{objectQualifier}EventsMaster e ON s.ModuleID = e.SubEventID

Where s.Userid = @UserID AND (s.ModuleID = @ModuleID Or e.ModuleID = @ModuleID)

ORDER BY c.EventTimeBegin desc

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
2/3/2010 12:47 AM
 

Makes sense. What baffled me until you now tell me where the problem is, is that it also repeats for modules that have been deleted but previously were duplicated on another page. This just to help when you re-write the sql.

Regards

Hans

 
New Post
2/3/2010 7:35 AM
 

The SQL posted above should solve your problem.

Cheers
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
 
New Post
2/3/2010 10:54 PM
 

Works fine.

Thanks.

Hans

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsDuplicate results for "my Enrollments"Duplicate results for "my Enrollments"


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