Register  Login  
  February 9, 2012  
Forum    
Forum Minimize
 
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Is it possible to display a report without the select box?Is it possible to display a report without the select box?
Previous Previous
 
Next Next
New Post
 6/1/2010 5:15 PM
 

I'm trying to same users some clicks. What is was wondering is if it was possilble to pass in a parameter and display the same view as you would get from selecting something in the drop list. In my case, I'm using this to display a list of pending event registrations. In previous years, we just had a link to a page where the user would pick their own name from a list and the report would display. Id like to give them a link with their id as a parameter and have that same report display but without the need to go through the list. I've checked the manual but couldn't determine if it had what I was looking for. If v4 doesn't have this capability, would v5?

Thanks in advance for all the help.

New Post
 6/4/2010 12:01 AM
 

SQLGridSelectedView (both V4 and V5) can accept as value from the URL and us it in the generated SQL. So, you can pass the USERID in the URL for the display, you can then use the associated value in the SQL Select.

For example, assume you want to pass the DotNetNuke UserID , then your URL might look like

www.mysite.com/.../default.aspx?UserID=123

The substitution parameter [Query:<keyname>:<defaultvalue>] is available to pass Query string parameters into the SQL Select. The <keyname> is the key in the key value pair passed on the URL, the defaultvalue is the value to be used if the <keyname> is not found. The default value is optional. Given the above URL, the primary SQL select command may look something like:

select * from mytable where userid = [QUERY:Userid:0]

This would result in the following SQL command being passed to the database for processing

select * from mytable where userid = 123

Hope this helps,
Paul.

Previous Previous
 
Next Next
ForumForumDiscussionsDiscussionsSQLGridSelected...SQLGridSelected...Is it possible to display a report without the select box?Is it possible to display a report without the select box?

Print  

  Home | Blog | Forum | Subscriptions | Free Modules | Videos   Page generated in 0.15664 seconds.
  Copyright 2010 by TressleWorks   Terms Of Use | Privacy Statement