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 ForumsReportsReportsCreating a ViewProfile linkCreating a ViewProfile link
Previous
 
Next
New Post
10/11/2007 12:30 AM
 

How can I create a link to view a user profile via the reporting output

 
New Post
10/11/2007 9:38 AM
 

There are a couple of ways to do this, depending on your Visualizer. If you are using the Grid Visualizer then you need to place it in your SQL, if you are using the HTML Visualizer it is a little easier. Essentially, you need to go to the user profile page for any user and get the URL. Then figure out where the UserID is (I don't have a DNN installation handy at the moment, so I don't have the exact URL format on hand).

For this post, I will assume that it is:

http://mydnnsite.com/path/to/profile/[UserID goes here]/page/Default.aspx

If you are using the Grid Visualizer, then you can put something like this in your SQL

SELECT '<a href="http://mydnnsite.com/path/to/profile/' + UserID + '/page/Default.aspx">User Profile</a>' as ProfileLink, ...

This will build the complete <a> tag in the SQL Server.

If you are using the HTML Visualizer, it is a lot easier, just add the link to your HTML template and use the "[UserId]" token (or replace "UserId" with the name of the column returned by your query that contains the User ID). For example:

<a href="http://mydnnsite.com/path/to/profile/[UserId]/page/Default.aspx">[UserName]'s Profile</a> ...

You can also use the XSLT Visualizer, but I won't go in to details regarding that. The concept is similar to the HTML Visualizer though, just build the link inside the template.


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

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsCreating a ViewProfile linkCreating a ViewProfile link


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