Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Reports Module ...  Role Users Report
Previous Previous
 
Next Next
New Post 6/24/2007 2:11 PM
User is offline Paul L
8 posts
10th Ranked


Re: Role Users Report 

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/24/2007 10:14 PM
User is offline Andrew Nurse
353 posts
8th Ranked






Re: Role Users Report 
Modified By Andrew Nurse  on 6/25/2007 1:16:12 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 12:10 AM
User is offline Paul L
8 posts
10th Ranked


Re: Role Users Report 

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 7:32 AM
User is offline Andrew Nurse
353 posts
8th Ranked






Re: Role Users Report 

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 11:48 AM
User is offline hedera
5 posts
www.karenivy.net
10th Ranked


Re: Role Users Report 

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.

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Reports Module ...  Role Users Report
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com
Ultra Media Gallery & Video Gallery
The most popular photo gallery and video gallery module. with Flash interface.
www.bizmodules.net
WDK Solutions
Quality modules for the DotNetNuke community. Check out our 'wild' modules!
wdkns.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP