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 ForumsReportsReportspassing parameters to an sql query in reports modulepassing parameters to an sql query in reports module
Previous
 
Next
New Post
9/22/2008 2:11 PM
 

Does any one know a way to pass user supplied parameters to an sql query in a reports module?

I just started a new job where they have an existing dnn intranet website version 2...(something)-where they are using a reports module to run this query

SELECT     order_number AS OrderNo, tracking_number AS TrackingNo, CONVERT(Char(10), ShipDate, 110) as ShipDate, customer_number AS CustNo, customer_name AS CustName, address1 AS Addr,
                      city AS City, state AS State, postal_code AS Postal
FROM         TBL_SHIPPING_TRACKING_NUMBER
Where Order_number like '%' + @orderno + '%'
 

It works in the old app. There is actually a place on the form where you can put in the parameters for the report.

I have dnn version 04.09.00 installed and have to make the report behave the same way as the existing app.  But I get an error when I run the same query

There was an error executing the data source: There is an error in your SQL at line 4: Must declare the scalar variable "@orderno".
 Does anyone have an idea how I can get the same behaviour in dnn 04.09.00?

Thanks

 

 

 
New Post
11/24/2008 4:47 PM
 

It appears there is no such feature in this version.


Best Regards, Dave VanderWekke
 
New Post
2/13/2009 7:12 AM
 

This is so desperatly needed.  Unable to use the reports module as URL parameters doesn't find it's way through.

Maybe a fast track, quickfix, leap patch, exception cycle, Urgent business forced deploy and so on and soon .. :D

 
New Post
2/26/2009 6:44 AM
 

nimmis wrote

Does any one know a way to pass user supplied parameters to an sql query in a reports module?

I just started a new job where they have an existing dnn intranet website version 2...(something)-where they are using a reports module to run this query

SELECT     order_number AS OrderNo, tracking_number AS TrackingNo, CONVERT(Char(10), ShipDate, 110) as ShipDate, customer_number AS CustNo, customer_name AS CustName, address1 AS Addr,
                      city AS City, state AS State, postal_code AS Postal
FROM         TBL_SHIPPING_TRACKING_NUMBER
Where Order_number like '%' + @orderno + '%'
 

It works in the old app. There is actually a place on the form where you can put in the parameters for the report.

I have dnn version 04.09.00 installed and have to make the report behave the same way as the existing app.  But I get an error when I run the same query

There was an error executing the data source: There is an error in your SQL at line 4: Must declare the scalar variable "@orderno".
 Does anyone have an idea how I can get the same behaviour in dnn 04.09.00?

Thanks

 

 Hi

 

I have  the same problem.

 

I want to pass a parameter ( StudID) in sql query.

I  am using Report 5.0 version.

Please help me as soon as possible.

 

Thanks,

Nirav.

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportspassing parameters to an sql query in reports modulepassing parameters to an sql query in reports module


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