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 ForumsReportsReportsURL ParameterURL Parameter
Previous
 
Next
New Post
8/3/2009 3:23 PM
 

Hi, I am trying to use URL Parameter to get a value from QueryString in Reports Module 5.1

My Query string is like this  http://www.mysite.com/page3?city=Boston

in the reports module , I put  @url_city in "Allow URL Parameters" ,

then put  select * from city where name=@url_city    in the "query"

but it keep saying @url_city is not  declared.  

so I put  declare @url_city as varchar(10) in , then error went away, but it seems not getting any data from querystring.

Can anyone help me on this ?

Thanks

 
New Post
8/3/2009 4:15 PM
 

The "Allowed URL Parameters" field uses the name of the QueryString parameter, not the name of the SQL parameter, so you should put "city" in that field, then you can use "@url_city" in your query.

In general, if you put "foo" in Allowed URL Parameters, the parameter "@url_foo" is declared.


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

 
New Post
10/14/2009 9:16 AM
 

I'm trying to use the URL parameter with a mysql database. I think that the prefix to use is "?", but nothing works ...

I put "cat" in the Allowed URL parameter, I put "?" in the parameter prefix, my query is : SELECT * FROM CAT WHERE ID = ?url_cat

Any idea ?

Greg

 

 

 
New Post
2/3/2010 7:29 AM
 
Andrew Nurse wrote:

The "Allowed URL Parameters" field uses the name of the QueryString parameter, not the name of the SQL parameter, so you should put "city" in that field, then you can use "@url_city" in your query.

In general, if you put "foo" in Allowed URL Parameters, the parameter "@url_foo" is declared.

 

 

Any update on this issue?!

I have the same problem with Report Module.

You can check this:

Test 1: OK

1. Allowed URL Parameters: foo

2. Active Data Source:DotNetNuke DataSource

3.Query: Select @url_foo 

Save.

Set paramenter in the url ...Default.aspx?foo=1 ... return 1 .... Evrething is OK...

Test 2: Error

1. Allowed URL Parameters: foo

2.1 Active Data Source:Generic ADO.Net Data Source

2.2 ODBC Data Provider

2.3 Connection String : Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=D:\Web\www\dotnetnuke\Portals\0\db\db1.mdb;

3.Query: Select @url_foo 

Save

Set paramenter in the url ...Default.aspx?foo=1 ... return 0 (defult value) ....

 

Any feedback would be appreciated ...

 

 
New Post
12/22/2011 4:33 PM
 
I am having the same issue with the OleDb Data Provider

I have set in Allowed Url Parameters: pin

My Query is: SELECT * FROM tax WHERE (PIN=@url_pin)

I get the message that "The report query returned no results." when I pass the QueryString parameter ?pin=0611454027

When I use Query: SELECT * FROM tax WHERE (PIN='0611454027')

I then get the data returned.

Reports Module v5.5.0 - DotNetNuke v6.0.1

Any help or feedback would be greatly appreciated

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsURL ParameterURL 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