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 ForumsReportsReportsReporting using current user as a parameterReporting using current user as a parameter
Previous
 
Next
New Post
11/5/2007 2:26 AM
 

I'm working on creating a method of publishing payroll information in a secure fashion for about 50 truck drivers. Our company website is running DNN 4 and our current backend software is running on MS SQL 2000. I can easily extract the data I want weekly and push it to our web server's sql database but how do I get the reporting tool to grab the payroll information for just the currently logged in user and no one else. Every driver has a driver ID in the software created by using the first for letters of their last name and the first two letter of their first name Example Mike Jones would be jonemi . We currently do not have user accounts setup for any of our drivers and could easily make their user names the same as their driverID in our back end system. I'd like to be able to select the current user and use that as a paramter in my select statment for the report.

 
New Post
11/7/2007 1:03 AM
 

I second the motion.  I'm having a similar issue.  I have due dates for assignments.  Each user has different due dates based on when they began employment with the company.  This sounds like this should be a common problem.

 
New Post
11/11/2007 1:51 PM
 

I found Andrews prior post on this topic.  Do a search on @uname and you will get the post that shows how to do this.

 
New Post
11/26/2007 3:37 PM
 

The @UserID parameter allows you to do this, and along with the @PortalID, @TabID and @ModuleID parameters, you should have all the parameters you'll need. A future version (after 5.0) will introduce a more flexible parameter system.


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

 
New Post
1/8/2008 8:00 PM
 

Can you give us a little more info on how to use these values?  I tried:

SELECT * FROM DNN4_UserProfile
WHERE UserID = @UserID

and it did not work...

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReporting using current user as a parameterReporting using current user as a parameter


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