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  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
 


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


Role Users Report 

I've created a useful report that displays all the users in a particular role that displays First Name, Last Name and Email address. If anyone can tell me how I'd also extract the users phone number I'd be greatful!

SELECT    
  U.FirstName,
  U.LastName,
  U.Email
 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

 
New Post 6/22/2007 9:40 AM
User is offline DnnDon
6 posts
10th Ranked


Re: Role Users Report 

I have a need for this report. But I cannot get it to work. I am new to this, but it should be simple.

Using the Reports module,  under Report settings.I copy & paste the code into the Query text window.


I click on test query and get  "test successful, 0 records returned"


What am I doing wrong?

 

 
New Post 6/22/2007 10:57 AM
User is offline ech01
622 posts
7th Ranked




Re: Role Users Report 

There is a function (depending on your version) called

GetProfileElement

I would look at that.


www.blackhawksurfaces.com | www.nlsales.com | www.midwestfilmandvideo.com
 
New Post 6/22/2007 11:32 AM
User is offline Paul L
8 posts
10th Ranked


Re: Role Users Report 

Make sure you replace portalid=1 with the portalid of the portal you wish to extract the users from.

thanks for the info re: GetProfileElement, I will try that out.

 
New Post 6/22/2007 11:46 AM
User is offline DnnDon
6 posts
10th Ranked


Re: Role Users Report 

OK, It appears that I am missing something fairly basic. I am on DNN 04.05.01.


Does anyone have information on where to find and how to use the GetProfileElementfunction?

 
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.

 


Integral Hosting | DNN only $14.95/month
Experienced .NET hosting on Windows 2003, ASP.NET 1.1 & 2.0, MSSQL with real technical support.
www.integralhosting.com
Aricie
Aricie is one of the French pioneers and experts in DotNetNuke technology.
www.aricie.com
AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com

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