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 ForumsReportsReportsReport Module Parameter inputReport Module Parameter input
Previous
 
Next
New Post
5/11/2011 9:14 AM
 
Hi, I am trying to add a parameter to the a report using the report module.  My query example is simple.
Select * from Customers where CustomerID = @url_CustomerID
However I am receiving the following error message:
There was an error executing the data source: There is an error in your SQL at line 7: Must declare the scalar variable "@url_CustomerID".
I am unclear how to implement a parameter into an SQL query.  Do I need to use the Allowed URL Parameters input field?  Can you give me an example using my query on how I can implement this?  Thank you
 
New Post
9/12/2011 11:36 PM
 
I realize this is an old thread, but to fix this you should do the following.

Add CustomerID in your module settings.
Pass in CustomerID in the query string for the URL.

The SQL query should be

where CustomerID = @url_CustomerID

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
11/12/2011 12:18 AM
 
hi .sir
I also have this problem..
First...I write in Allowed Url Parameter text box " @moduleID"
and in Query text box " Where ModuleID=@moduleID"
I get this result " The report query return no result"
But I dont add exactly parameter as @moduleID=442
Where can I add exactly value to my parameter?
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsReport Module Parameter inputReport Module Parameter input


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