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 ForumsReportsReportsRole Users ReportRole Users Report
Previous
 
Next
New Post
6/24/2007 5:11 PM
 

Ya, I can't figure it out either. I've got a $20 paypal donation to whomever can add the users phone # column to this table.  Please!!

 

 

 
New Post
6/25/2007 1:14 AM
 

EDIT: The forums don't seem to like my formatting, so the bold statement doesn't seem to be bolded, I think its pretty clear which part I'm talking about (hint, it starts: "(SELECT" and ends "As PhoneNum").

Let me prefix this, possible, solution with two things: First, I don't have direct access to a DNN installation, so it might not be 100% accurate, and second, don't worry about that paypal donation if it works, I'm just happy to help :)

 SELECT    
  U.FirstName,
  U.LastName,
  U.Email,
  (SELECT PropertyValue FROM UserProfile WHERE
    UserProfile.UserID = U.UserID AND
    UserProfile.PropertyDefinitionID = 31) As PhoneNum

 FROM UserPortals AS UP
   RIGHT OUTER JOIN UserRoles  UR
   INNER JOIN Roles R ON UR.RoleID = R.RoleID
   RIGHT OUTER JOIN Users AS U ON UR.UserID = U.UserID
  ON UP.UserId = U.UserID
 WHERE ( UP.PortalId = 1)
  AND (R.RoleName = 'Registered Users')
 
 ORDER BY U.FirstName + ' ' + U.LastName

That solution may not work because it uses a hard-coded value for the Property Definition ID, if it doesn't work, check the Profile Property Definitions table (not 100% sure on the name, but its something like that), find the home phone number property and replace the '31' in the above, bolded, SQL with that number. If you need any other values from the profile, you can just copy the bold SELECT query above and change the '31' to a different property definition ID.

Hope that helps!


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
6/25/2007 3:10 AM
 

PERFECT!! Yes, that does it. In the end it was the Property Definition ID table I was missing out on, as you suggested I replaced with my PropertyDefinitionID for that portal and voila, it works. THANKS!!

As for the donation Andrew, if you don't want it I'll send it to your charity. This has saved me a few hours work of head scratching and I appreciate it.

Paul

 
New Post
6/25/2007 10:32 AM
 

No problem, happy to help. Unfortunately it is a little tricky to pull these profile properties out through SQL, but I'm looking at ways to make it easier in future releases on the Reports Module.

As far as the donation is concerned, my charity of choice would be the National AIDS Fund: http://www.aidsfund.org/naf/index.cfm

Glad to hear you've fixed your problem and I hope you continue using the module!

-Andrew


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
1/8/2008 3:48 PM
 

Thank you!  This was EXACTLY the report I wanted to run, and it worked with merely changing the portal id!  Super!

hedera

Nature bats last.

 


hedera
**********
Nature bats last.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsRole Users ReportRole Users Report


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