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 ForumsReportsReportsHow does one access View Profile page from a reportHow does one access View Profile page from a report
Previous
 
Next
New Post
8/8/2007 10:49 AM
 

I've created a SQL report using DNNs Report module that pulls user information in the form of a user directory. Anyway, I want to link a column to the View Profile page. What query is used by that page. If you use the Links Module to go to an indivual's View Profile page it creates a userticket query string. (.../ViewProfile/Default.aspx?userticket=AKaVebQ7XtI%3d) Is there another way to access that View Profile page. UserID (below) does not work.

SELECT '<a HREF=/nasdev/Home/tabid/37/ctl/ViewProfile/Default.aspx?UserID=' +CAST(U.UserID AS VARCHAR)+'>'+ U.Lastname+ ', '+U.Firstname +'</a>' AS Associate, U.Lastname AS [Last Name], U.Firstname AS [First Name], R.Rolename AS [Team], '<a href=mailto:'+AM.Email+'>'+AM.Email+'</a>' AS [Office Email], (SELECT PropertyValue FROM dbo.UserProfile WHERE PropertyDefinitionID = '31' AND dbo.UserProfile.UserId =U.UserId) AS [Office Phone], (SELECT PropertyValue FROM dbo.UserProfile WHERE PropertyDefinitionID = '32' AND dbo.UserProfile.UserId =U.UserId) AS [Cell Phone]
FROM Users U
INNER JOIN UserRoles UR on U.Userid = UR.Userid
INNER JOIN Roles R on UR.Roleid = R.Roleid
INNER JOIN Aspnet_users AU on U.Username = AU.Username
INNER JOIN Aspnet_membership AM on AU.Userid = AM.Userid
WHERE R.Rolename = 'NASDEV Associate'
ORDER BY U.Lastname ASC
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsHow does one access View Profile page from a reportHow does one access View Profile page from a 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