Showing posts with label based. Show all posts
Showing posts with label based. Show all posts

Friday, March 30, 2012

reporting services valid values query based

I have a parameter that is query based. I have created my own UI to list out
the text boxes per parameter required by the report. Now comes the problem of
a query based parameter. How to I get the queary based valid values to
populate my drop down list boxEddie,
If I understand your correctly I may have some ideas that will help you with
query based Parameters, but first please clarify the reason you built a UI
for users to pass parameters into the report?
thx.
"Eddie" wrote:
> I have a parameter that is query based. I have created my own UI to list out
> the text boxes per parameter required by the report. Now comes the problem of
> a query based parameter. How to I get the queary based valid values to
> populate my drop down list box|||I have several clients that use browsers which the report viewer doesn't
behave well.
I did figure it out. The valid values come back as array when you call the
GetReportParameter method and set the "ForRendering" to TRUE.
So all I did was add the values to ListItems and populated a drop down.
Also, a nifty thing was to find all the Date type parameters and lock the
text box and provide a calendar. This allowed me to use our application's
Localization methods to handle all the different Date formats.
"RS_CZAR" wrote:
> Eddie,
> If I understand your correctly I may have some ideas that will help you with
> query based Parameters, but first please clarify the reason you built a UI
> for users to pass parameters into the report?
> thx.
> "Eddie" wrote:
> > I have a parameter that is query based. I have created my own UI to list out
> > the text boxes per parameter required by the report. Now comes the problem of
> > a query based parameter. How to I get the queary based valid values to
> > populate my drop down list box

Wednesday, March 28, 2012

Reporting Services SP using Dynamic Queries

Hey i am using Stored Procedures in Sql Reporting Services.
This SP has some parameters and based on these parameter's value Final query is being created at run time. But when i use this SP in VS.Net Reporting Services as dataset then it doesnt show its fields.

Here I am writing some part of my SP to show how things are working at my end. @.Country , @.StartDate , @.EndDate are SP parameters and based on these parameter’s value, some part of query is being added to main query. So in this case again I am not able to get fields in report.

IF LTRIM(RTRIM(@.Country)) IS NOT NULL

BEGIN
SET @.CountryQuery = " AND ID3.id_value LIKE '" + LTRIM(RTRIM(@.Country)) +"' "
END

IF LTRIM(RTRIM(@.StartDate)) IS NOT NULL AND LTRIM(RTRIM(@.EndDate)) IS NOT NULL
BEGIN
SET @.DateQuery = " AND ( "+@.FieldName+" >= '" + LTRIM(RTRIM(@.StartDate)) + "' AND "+@.FieldName+" <= '" + LTRIM(RTRIM(@.EndDate)) + "' ) "
END

SET @.Query = " SELECT DISTINCT field1, field2, field3 FROM Table1 T1 INNER JOIN Table2 T2 ON T1.id_fk = T2.id_code " + @.CityQuery + " WHERE tr_status =1" + @.DateQuery

EXEC (@.Query)

Even I have used temp table in SP and stored values in it but could not able to get desired result (get fields in report).

PLease help me
Thanks

Hi,

Try these steps:

1. In your DataSet put the query with fixed values (i.e. without parameters):

SELECT DISTINCT field1, field2, field3 FROM Table1 ...

2. Execute the Query

3. Go to the "DataSets Window" and select "refresh"

4. Now you should replace the query above with the Stored Procedure command

I think this solves your problem.

--

Telmo Moreira

Wednesday, March 21, 2012

Reporting Services on a Workgroup based network?

Can I use Reporting Services 2005 in a workgroup to serve reports for a windows application which is distributed accross the network?

I've already tried but when the application on a client pc requested a report from the report server i got a message about not having enough permissions to see the report. The windows application was builded using VB .NET 2.0 and VS2005.

The report server instance is installed on a server 2003 enterprise along with the SQL Server 2005.

If this is possible how can set permisions or make my application to be able to requests and show reports?

Thanks a lot to anybody who takes the time to answer.

Antonio Alfaro

I think the problem with wkgrp is that IIS authenticates the client as an anonymous user (verify this in your IIS log). You can probably use anonymous, basic or forms authentication.sql

reporting services matrix subtotal

I have a matrix and have used the switch function to select the measure group that is displayed (based on selecting a report parameter). All works fine except the subtotal only shows the first row data.

e.g.

2005

2006

2007

Sales

Sales

Sales

a

2

2

2

b

4

4

4

c

6

6

6

TOTAL

2

2

2

The switch function used to select the measure is:

switch(Parameters!Measure.Value="Gross Sales",Fields!GrossSale.Value,Parameters!Measure.Value="Net Sales",Fields!NetSale.Value,Parameters!Measure.Value="Sales Quantity",Fields!SaleQuantity.Value,Parameters!Measure.Value="Sales Rebate",Fields!SalesRebate.Value)

Any idea why this would happen?

Thanks

Looks like you're not aggregating the applicable measure - how about trying this modified cell expression:

switch(Parameters!Measure.Value="Gross Sales",Aggregate(Fields!GrossSale.Value),Parameters!Measure.Value="Net Sales",Aggregate(Fields!NetSale.Value),Parameters!Measure.Value="Sales Quantity",Aggregate(Fields!SaleQuantity.Value),Parameters!Measure.Value="Sales Rebate",Aggregate(Fields!SalesRebate.Value))

|||

Deepak,

Thanks for your help.

all is fine now.

Tuesday, February 21, 2012

Reporting Services Consume A Web Service

Is it possible to have a Reporting Services consume a web service that
generates a dataset, then turn around and generate the report based on
that dataset? I'm using SQL Server 2000. I'm trying to implement a
middle web service based tier and would like to prevent reporting
services from interacting directly with my application databases. Any
pointers would be greatly appreciated.
thx - ChrisI think with SSRS 2000, you will have to write a custom data processing
extension.
With SSRS 2005 version, you can use the web services as a data source
and SOAP methods within the webservice as the data sets.
See http://msdn2.microsoft.com/en-us/library/ms345334.aspx for more
details.
thanks
- jasthi
Chris wrote:
> Is it possible to have a Reporting Services consume a web service that
> generates a dataset, then turn around and generate the report based on
> that dataset? I'm using SQL Server 2000. I'm trying to implement a
> middle web service based tier and would like to prevent reporting
> services from interacting directly with my application databases. Any
> pointers would be greatly appreciated.
> thx - Chris|||Correct, with RS 2000 you need to write a custom data extension. With RS
2005, consider the XML data provider.
--
HTH,
---
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog: http://www.prologika.com/
---
<siva.jasthi@.gmail.com> wrote in message
news:1134229477.755572.183070@.f14g2000cwb.googlegroups.com...
>I think with SSRS 2000, you will have to write a custom data processing
> extension.
> With SSRS 2005 version, you can use the web services as a data source
> and SOAP methods within the webservice as the data sets.
> See http://msdn2.microsoft.com/en-us/library/ms345334.aspx for more
> details.
> thanks
> - jasthi
>
> Chris wrote:
>> Is it possible to have a Reporting Services consume a web service that
>> generates a dataset, then turn around and generate the report based on
>> that dataset? I'm using SQL Server 2000. I'm trying to implement a
>> middle web service based tier and would like to prevent reporting
>> services from interacting directly with my application databases. Any
>> pointers would be greatly appreciated.
>> thx - Chris
>