Showing posts with label services. Show all posts
Showing posts with label services. Show all posts

Friday, March 23, 2012

How to enable Remote Erros on Report Server 2005?

hi, all

When i tried to access a report via URL and I got an error page like:

Reporting Services Error

For more information about this error navigate to the report server on the local server machine, or enable remote errors
SQL Server Reporting Services

So, How to enable the remote errors and then I was able to see what is wrong.

Thanks.

You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table.

Alternatively, you can use the SetSystemProperties SOAP call:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_63le.asp

-- Robert

|||Hi, Sorry from the newbie question :)

I saw the answer:
"You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table."

How can I get to the ReportServer.ConfigurationInfo database table?

I am on the reportservice server and I run "reporting services configuration manager" and the "sql server managment". I didn't saw that option :(

Any help?
Thanks.
|||

Hi,

Go To SQL Server Management Studion , Select ReportServer Database and run below Statement

Select * From ConfigurationInfo

Where Name = 'EnableRemoteErrors'

Change the Value to True

Thanks

Nilesh

How to enable Remote Erros on Report Server 2005?

hi, all

When i tried to access a report via URL and I got an error page like:

Reporting Services Error


For more information about this error navigate to the report server on the local server machine, or enable remote errors


SQL Server Reporting Services

So, How to enable the remote errors and then I was able to see what is wrong.

Thanks.

You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table.

Alternatively, you can use the SetSystemProperties SOAP call:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_63le.asp

-- Robert

|||Hi, Sorry from the newbie question :)

I saw the answer:
"You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table."

How can I get to the ReportServer.ConfigurationInfo database table?

I am on the reportservice server and I run "reporting services configuration manager" and the "sql server managment". I didn't saw that option :(

Any help?
Thanks.

How to enable Remote Erros on Report Server 2005?

hi, all

When i tried to access a report via URL and I got an error page like:

Reporting Services Error


For more information about this error navigate to the report server on the local server machine, or enable remote errors


SQL Server Reporting Services

So, How to enable the remote errors and then I was able to see what is wrong.

Thanks.

You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table.

Alternatively, you can use the SetSystemProperties SOAP call:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_63le.asp

-- Robert

|||Hi, Sorry from the newbie question :)

I saw the answer:
"You could set the "EnableRemoteErrors" configuration value to True in the ReportServer.ConfigurationInfo database table."

How can I get to the ReportServer.ConfigurationInfo database table?

I am on the reportservice server and I run "reporting services configuration manager" and the "sql server managment". I didn't saw that option :(

Any help?
Thanks.

How to enable remote erros for report server?

hi, all
When i tried to access a report via URL and I got an error page like:
Reporting Services Error
----
For more information about this error navigate to the report server on
the local server machine, or enable remote errors
----
SQL Server Reporting Services
So, How to enable the remote errors and then I was able to see what is
wrong.
Thanks.I'm getting the same error. We can get around the problem for now by logging
onto the server to see exactly what the error is, but I have yet to find out
how to turn on remote errors.
Any one have any ideas how to do this?
"Nick" wrote:
> hi, all
> When i tried to access a report via URL and I got an error page like:
> Reporting Services Error
> ----
> For more information about this error navigate to the report server on
> the local server machine, or enable remote errors
> ----
> SQL Server Reporting Services
> So, How to enable the remote errors and then I was able to see what is
> wrong.
> Thanks.
>|||I have done this with RS 2000.
It is in the machine.config file for .NET Framework v1.1 in the
<windows>\Microsoft.NET\Framework\<Version>\ folder.
There is a XML Tag <System.Web>/<customErrors>
I think you set the value to "RemoteOnly"
It looks like there is a similar tag for .NET 2.0 but the config file looks
a little different. Hopefully, this can can point you in the right direction
-Sean
"Nick" wrote:
> hi, all
> When i tried to access a report via URL and I got an error page like:
> Reporting Services Error
> ----
> For more information about this error navigate to the report server on
> the local server machine, or enable remote errors
> ----
> SQL Server Reporting Services
> So, How to enable the remote errors and then I was able to see what is
> wrong.
> Thanks.
>|||Sean, I found on another posting that this setting is within the
ConfigurationInfo table in the ReportServer database. Setting the value to
True makes it work.
Steve
"Sean P." wrote:
> I have done this with RS 2000.
> It is in the machine.config file for .NET Framework v1.1 in the
> <windows>\Microsoft.NET\Framework\<Version>\ folder.
> There is a XML Tag <System.Web>/<customErrors>
> I think you set the value to "RemoteOnly"
> It looks like there is a similar tag for .NET 2.0 but the config file looks
> a little different. Hopefully, this can can point you in the right direction
> -Sean
>
> "Nick" wrote:
> > hi, all
> >
> > When i tried to access a report via URL and I got an error page like:
> >
> > Reporting Services Error
> > ----
> >
> > For more information about this error navigate to the report server on
> > the local server machine, or enable remote errors
> > ----
> > SQL Server Reporting Services
> > So, How to enable the remote errors and then I was able to see what is
> > wrong.
> >
> > Thanks.
> >
> >|||setting *what* value exactly? my ConfigurationInfo table has 9 rows in
it and none of these contain anything that looks like it may be the right
setting to change.
heres the contents of my ConfigurationInfo table.
EnableExecutionLogging True
EnableMyReports False
ExecutionLogDaysKept 60
MyReportsRole My Reports
SessionTimeout 600
SiteName SQL Server Reporting Services
SystemReportTimeout 1800
SystemSnapshotLimit -1
UseSessionCookies true
"SteveIrwin" wrote:
> Sean, I found on another posting that this setting is within the
> ConfigurationInfo table in the ReportServer database. Setting the value to
> True makes it work.
> Steve
> "Sean P." wrote:
> > I have done this with RS 2000.
> > It is in the machine.config file for .NET Framework v1.1 in the
> > <windows>\Microsoft.NET\Framework\<Version>\ folder.
> >
> > There is a XML Tag <System.Web>/<customErrors>
> > I think you set the value to "RemoteOnly"
> >
> > It looks like there is a similar tag for .NET 2.0 but the config file looks
> > a little different. Hopefully, this can can point you in the right direction
> >
> > -Sean
> >
> >
> > "Nick" wrote:
> >
> > > hi, all
> > >
> > > When i tried to access a report via URL and I got an error page like:
> > >
> > > Reporting Services Error
> > > ----
> > >
> > > For more information about this error navigate to the report server on
> > > the local server machine, or enable remote errors
> > > ----
> > > SQL Server Reporting Services
> > > So, How to enable the remote errors and then I was able to see what is
> > > wrong.
> > >
> > > Thanks.
> > >
> > >|||My ConfigurationInfo table has the following info
EnableExecutionLogging True
EnableIntegratedSecurity true
EnableMyReports False
ExecutionLogDaysKept 60
ExternalImagesTimeout 600
MyReportsRole My Reports
SessionTimeout 600
SiteName SQL Server Reporting Services
SnapshotCompression SQL
SystemReportTimeout 1800
SystemSnapshotLimit -1
UseSessionCookies true
Do we need to add a record for customErrors?

How to enable remote errors for Reporting Services 2005

How do I enable remote errors for Reporting Services 2005?I am surprised this issue isn't dealt with in a FAQ in these forums.

There appear to be two ways to enable remote errors to display, so you can figure out what is happening ith your report.

1) Modify the Web.config file for the reports application. Whether this is for your application which contains the ReportViewer control that displays the error, or for a Report Services URL-based report is unclear.

Change the custumErrors section mode to off. Thus:

<customErrors mode="off"></customErrors>

It is also not clear if you must restart any ReportServer services or not with this procedure.

2) Create a small RSS script and run it against your server to set the correct property. I did this and it worked for me. Here's the thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=230635&SiteID=1
|||Thanks much lanky!|||

Hi,

I have encountered a similar issue. I have a report server which hosts 1 report. I tried to access it via url thru another machine but I cannot see the remote errors even though I have already set the EnableRemoteErrors value to true in the ConfigurationInfo table in ReportServer Database but I am still not getting the Remote errors. I have restarted the web server, the report services and the database services but it is still not working for me.

Is there anything else which I have missed?

Thanks for any help!!

sql

How to enable remote errors for Reporting Services 2005

How do I enable remote errors for Reporting Services 2005?I am surprised this issue isn't dealt with in a FAQ in these forums.

There appear to be two ways to enable remote errors to display, so you can figure out what is happening ith your report.

1) Modify the Web.config file for the reports application. Whether this is for your application which contains the ReportViewer control that displays the error, or for a Report Services URL-based report is unclear.

Change the custumErrors section mode to off. Thus:

<customErrors mode="off"></customErrors>

It is also not clear if you must restart any ReportServer services or not with this procedure.

2) Create a small RSS script and run it against your server to set the correct property. I did this and it worked for me. Here's the thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=230635&SiteID=1
|||Thanks much lanky!|||

Hi,

I have encountered a similar issue. I have a report server which hosts 1 report. I tried to access it via url thru another machine but I cannot see the remote errors even though I have already set the EnableRemoteErrors value to true in the ConfigurationInfo table in ReportServer Database but I am still not getting the Remote errors. I have restarted the web server, the report services and the database services but it is still not working for me.

Is there anything else which I have missed?

Thanks for any help!!

Wednesday, March 21, 2012

How to Email to Microsoft?

I find a bug in Reporting Services ,How to Email to Microsoft?

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=604575&SiteID=1&mode=1

To submit bugs, you can contact Microsoft Connect, at https://connect.microsoft.com/SQLServer.
|||Ian Roof - MSFT ,Thank you very much!

Monday, March 19, 2012

How to edit textbox or a cell of table?

Hi everybody!
I've created a report in reporting services and in it i need to have a
dynamic textbox.
Let me describe more.I have two reports ,in first report i have
manegers' names .After that users see first report and manegers'
informations for example their names and saleries , they want to
select manegers on base for example their saleries ,i mean the user
must see informations then decide and select manegers who their
employees will be shown in second report ,in this case i need a
textbox that the user can write Yes or No in it,or checkbox for
multiple select .
After that users select their manegers they can see manegers'
employees in second report.
I need a textbox that has two values (Yes and No) and these values
must be shown in textbox in preview mode to select by users or user
can select Yes or No or checkbox.
Can anybody help me?
ShimaSwhy not just create one report that groups on the managers names and when
the name is clicked the details are shown. This functionality is built in
and easy to do.
another option is to add link on the managers name and when clicked open the
second report by passing the manager's name as a parameter. you won't be
able to do multiple choices though.
<shima.seifolahi@.gmail.com> wrote in message
news:1193114815.518228.133770@.t8g2000prg.googlegroups.com...
> Hi everybody!
> I've created a report in reporting services and in it i need to have a
> dynamic textbox.
> Let me describe more.I have two reports ,in first report i have
> manegers' names .After that users see first report and manegers'
> informations for example their names and saleries , they want to
> select manegers on base for example their saleries ,i mean the user
> must see informations then decide and select manegers who their
> employees will be shown in second report ,in this case i need a
> textbox that the user can write Yes or No in it,or checkbox for
> multiple select .
> After that users select their manegers they can see manegers'
> employees in second report.
> I need a textbox that has two values (Yes and No) and these values
> must be shown in textbox in preview mode to select by users or user
> can select Yes or No or checkbox.
> Can anybody help me?
> ShimaS
>|||I did it ,but i need to select more than one prson in first report,
for one person i don't have any problem
Thanks

How To Dynamically Switch Between Databases In Report

Let me preface this by stating that I am a Reporting Services newbie...
I need to design a report that displays financial data for 2 companies,
Company A and Company B. The problem is that each company has their own
distinct database. The schema is identical between them, just different data
in each.
The report is identical for each company, the only different is that the
report needs to pull from Database A to display the report data for Company
A, and alternatively pull from Database B to display the report data for
Company B. The user wants to be able to specify whether they want to run the
report for Company A, or Company B.
How can I design the report or setup the data source to switch databases
depending on if the user wants to see the report for Company A or Company B?
Can this be done with a report parameter? If so, how?
I really don't want to create and maintain 2 identical reports, the only
difference being the data source.
One possible option I guess would be to create a view that combines data
from identical tables in both databases, and use that view as the datasource
in the report.
Just looking for what others have done in similar circumstances so I don't
spend multiple days architecting the wrong approach.
Thanks!Here is one way. It is an interesting technique in that it uses the ability
to run a batch of SQL statement. Use the generic query designer. Then paste
in the following (as an example).
declare @.SQL varchar(255)
select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects where xtype
= ''U'' order by name'
exec (@.SQL)
You can also use an expression but one thing that is nice about the above
method is it will still fill in the field names (sometimes you have to click
on the refresh fields button but it all works). In your case you would have
the @.Database parameter be based on a list they choose from CompanyA,
CompanyB where the value for the selection would be the database name.
To do what you want will require a little more messing around. You could
first develop against one database to make sure you have the query correct
and then change it to be dynamic.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> Let me preface this by stating that I am a Reporting Services newbie...
> I need to design a report that displays financial data for 2 companies,
> Company A and Company B. The problem is that each company has their own
> distinct database. The schema is identical between them, just different
data
> in each.
> The report is identical for each company, the only different is that the
> report needs to pull from Database A to display the report data for
Company
> A, and alternatively pull from Database B to display the report data for
> Company B. The user wants to be able to specify whether they want to run
the
> report for Company A, or Company B.
> How can I design the report or setup the data source to switch databases
> depending on if the user wants to see the report for Company A or Company
B?
> Can this be done with a report parameter? If so, how?
> I really don't want to create and maintain 2 identical reports, the only
> difference being the data source.
> One possible option I guess would be to create a view that combines data
> from identical tables in both databases, and use that view as the
datasource
> in the report.
> Just looking for what others have done in similar circumstances so I don't
> spend multiple days architecting the wrong approach.
> Thanks!|||Thanks Bruce... Looks like 1 of many possible approaches to this problem.
I just found out that it is likely that the customer will be adding more
companies, hence addtional databases that the report needs to be run against.
I guess I need to go figure out how to setup and pass parameters to the
report to allow the end-user to specify the "root" database name of the
company at runtime.
"Bruce L-C [MVP]" wrote:
> Here is one way. It is an interesting technique in that it uses the ability
> to run a batch of SQL statement. Use the generic query designer. Then paste
> in the following (as an example).
> declare @.SQL varchar(255)
> select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects where xtype
> = ''U'' order by name'
> exec (@.SQL)
> You can also use an expression but one thing that is nice about the above
> method is it will still fill in the field names (sometimes you have to click
> on the refresh fields button but it all works). In your case you would have
> the @.Database parameter be based on a list they choose from CompanyA,
> CompanyB where the value for the selection would be the database name.
> To do what you want will require a little more messing around. You could
> first develop against one database to make sure you have the query correct
> and then change it to be dynamic.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
> news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> > Let me preface this by stating that I am a Reporting Services newbie...
> >
> > I need to design a report that displays financial data for 2 companies,
> > Company A and Company B. The problem is that each company has their own
> > distinct database. The schema is identical between them, just different
> data
> > in each.
> >
> > The report is identical for each company, the only different is that the
> > report needs to pull from Database A to display the report data for
> Company
> > A, and alternatively pull from Database B to display the report data for
> > Company B. The user wants to be able to specify whether they want to run
> the
> > report for Company A, or Company B.
> >
> > How can I design the report or setup the data source to switch databases
> > depending on if the user wants to see the report for Company A or Company
> B?
> > Can this be done with a report parameter? If so, how?
> >
> > I really don't want to create and maintain 2 identical reports, the only
> > difference being the data source.
> >
> > One possible option I guess would be to create a view that combines data
> > from identical tables in both databases, and use that view as the
> datasource
> > in the report.
> >
> > Just looking for what others have done in similar circumstances so I don't
> > spend multiple days architecting the wrong approach.
> >
> > Thanks!
>
>|||Hi,
What i'm currently doing is creating a reporting database that will include
all my reports stored procedure and have those stored procedure accessing my
OLTP data through a linked server. This way, if i need to install my
reporting solution at a new customer site, I only need to modify my linked
server parameters.
Hope this helps,
Eric
"Smit-Dog" wrote:
> Thanks Bruce... Looks like 1 of many possible approaches to this problem.
> I just found out that it is likely that the customer will be adding more
> companies, hence addtional databases that the report needs to be run against.
> I guess I need to go figure out how to setup and pass parameters to the
> report to allow the end-user to specify the "root" database name of the
> company at runtime.
> "Bruce L-C [MVP]" wrote:
> > Here is one way. It is an interesting technique in that it uses the ability
> > to run a batch of SQL statement. Use the generic query designer. Then paste
> > in the following (as an example).
> > declare @.SQL varchar(255)
> > select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects where xtype
> > = ''U'' order by name'
> > exec (@.SQL)
> >
> > You can also use an expression but one thing that is nice about the above
> > method is it will still fill in the field names (sometimes you have to click
> > on the refresh fields button but it all works). In your case you would have
> > the @.Database parameter be based on a list they choose from CompanyA,
> > CompanyB where the value for the selection would be the database name.
> >
> > To do what you want will require a little more messing around. You could
> > first develop against one database to make sure you have the query correct
> > and then change it to be dynamic.
> >
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> >
> > "Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
> > news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> > > Let me preface this by stating that I am a Reporting Services newbie...
> > >
> > > I need to design a report that displays financial data for 2 companies,
> > > Company A and Company B. The problem is that each company has their own
> > > distinct database. The schema is identical between them, just different
> > data
> > > in each.
> > >
> > > The report is identical for each company, the only different is that the
> > > report needs to pull from Database A to display the report data for
> > Company
> > > A, and alternatively pull from Database B to display the report data for
> > > Company B. The user wants to be able to specify whether they want to run
> > the
> > > report for Company A, or Company B.
> > >
> > > How can I design the report or setup the data source to switch databases
> > > depending on if the user wants to see the report for Company A or Company
> > B?
> > > Can this be done with a report parameter? If so, how?
> > >
> > > I really don't want to create and maintain 2 identical reports, the only
> > > difference being the data source.
> > >
> > > One possible option I guess would be to create a view that combines data
> > > from identical tables in both databases, and use that view as the
> > datasource
> > > in the report.
> > >
> > > Just looking for what others have done in similar circumstances so I don't
> > > spend multiple days architecting the wrong approach.
> > >
> > > Thanks!
> >
> >
> >|||In this case he has two databases that the customer wants to pick which one
to report off of.
Also, I would be very very careful with linked servers, especially if you
are using the four part naming. You could easily get burned. It takes very
little for SQL Server to decide to bring the whole table over and process it
locally. It is not doing a passthrough query. It seems like it would just
send the SQL to the remote server for processing but that is not what
happens with 4 part naming. This is what happens with OpenQuery but if you
are using 4 part naming then you could easily find yourself with a major
performance headache when you roll out to production.
Just a heads up on the dangers of linked servers.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Aiwa" <Aiwa@.discussions.microsoft.com> wrote in message
news:2C43C2F9-BC10-4951-87FD-428CDF9D1D69@.microsoft.com...
> Hi,
> What i'm currently doing is creating a reporting database that will
include
> all my reports stored procedure and have those stored procedure accessing
my
> OLTP data through a linked server. This way, if i need to install my
> reporting solution at a new customer site, I only need to modify my linked
> server parameters.
> Hope this helps,
> Eric
> "Smit-Dog" wrote:
> > Thanks Bruce... Looks like 1 of many possible approaches to this
problem.
> >
> > I just found out that it is likely that the customer will be adding more
> > companies, hence addtional databases that the report needs to be run
against.
> >
> > I guess I need to go figure out how to setup and pass parameters to the
> > report to allow the end-user to specify the "root" database name of the
> > company at runtime.
> >
> > "Bruce L-C [MVP]" wrote:
> >
> > > Here is one way. It is an interesting technique in that it uses the
ability
> > > to run a batch of SQL statement. Use the generic query designer. Then
paste
> > > in the following (as an example).
> > > declare @.SQL varchar(255)
> > > select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects where
xtype
> > > = ''U'' order by name'
> > > exec (@.SQL)
> > >
> > > You can also use an expression but one thing that is nice about the
above
> > > method is it will still fill in the field names (sometimes you have to
click
> > > on the refresh fields button but it all works). In your case you would
have
> > > the @.Database parameter be based on a list they choose from CompanyA,
> > > CompanyB where the value for the selection would be the database name.
> > >
> > > To do what you want will require a little more messing around. You
could
> > > first develop against one database to make sure you have the query
correct
> > > and then change it to be dynamic.
> > >
> > >
> > > --
> > > Bruce Loehle-Conger
> > > MVP SQL Server Reporting Services
> > >
> > >
> > > "Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
> > > news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> > > > Let me preface this by stating that I am a Reporting Services
newbie...
> > > >
> > > > I need to design a report that displays financial data for 2
companies,
> > > > Company A and Company B. The problem is that each company has their
own
> > > > distinct database. The schema is identical between them, just
different
> > > data
> > > > in each.
> > > >
> > > > The report is identical for each company, the only different is that
the
> > > > report needs to pull from Database A to display the report data for
> > > Company
> > > > A, and alternatively pull from Database B to display the report data
for
> > > > Company B. The user wants to be able to specify whether they want to
run
> > > the
> > > > report for Company A, or Company B.
> > > >
> > > > How can I design the report or setup the data source to switch
databases
> > > > depending on if the user wants to see the report for Company A or
Company
> > > B?
> > > > Can this be done with a report parameter? If so, how?
> > > >
> > > > I really don't want to create and maintain 2 identical reports, the
only
> > > > difference being the data source.
> > > >
> > > > One possible option I guess would be to create a view that combines
data
> > > > from identical tables in both databases, and use that view as the
> > > datasource
> > > > in the report.
> > > >
> > > > Just looking for what others have done in similar circumstances so I
don't
> > > > spend multiple days architecting the wrong approach.
> > > >
> > > > Thanks!
> > >
> > >
> > >|||Hi Bruce,
Thanks for the heads up.
I'm actually using OpenQuery since it looks like the only way to abstract
the database name when using a linked server.
Is there a better way to do this ?
Thanks,
Eric
"Bruce L-C [MVP]" wrote:
> In this case he has two databases that the customer wants to pick which one
> to report off of.
> Also, I would be very very careful with linked servers, especially if you
> are using the four part naming. You could easily get burned. It takes very
> little for SQL Server to decide to bring the whole table over and process it
> locally. It is not doing a passthrough query. It seems like it would just
> send the SQL to the remote server for processing but that is not what
> happens with 4 part naming. This is what happens with OpenQuery but if you
> are using 4 part naming then you could easily find yourself with a major
> performance headache when you roll out to production.
> Just a heads up on the dangers of linked servers.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Aiwa" <Aiwa@.discussions.microsoft.com> wrote in message
> news:2C43C2F9-BC10-4951-87FD-428CDF9D1D69@.microsoft.com...
> > Hi,
> >
> > What i'm currently doing is creating a reporting database that will
> include
> > all my reports stored procedure and have those stored procedure accessing
> my
> > OLTP data through a linked server. This way, if i need to install my
> > reporting solution at a new customer site, I only need to modify my linked
> > server parameters.
> >
> > Hope this helps,
> > Eric
> >
> > "Smit-Dog" wrote:
> >
> > > Thanks Bruce... Looks like 1 of many possible approaches to this
> problem.
> > >
> > > I just found out that it is likely that the customer will be adding more
> > > companies, hence addtional databases that the report needs to be run
> against.
> > >
> > > I guess I need to go figure out how to setup and pass parameters to the
> > > report to allow the end-user to specify the "root" database name of the
> > > company at runtime.
> > >
> > > "Bruce L-C [MVP]" wrote:
> > >
> > > > Here is one way. It is an interesting technique in that it uses the
> ability
> > > > to run a batch of SQL statement. Use the generic query designer. Then
> paste
> > > > in the following (as an example).
> > > > declare @.SQL varchar(255)
> > > > select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects where
> xtype
> > > > = ''U'' order by name'
> > > > exec (@.SQL)
> > > >
> > > > You can also use an expression but one thing that is nice about the
> above
> > > > method is it will still fill in the field names (sometimes you have to
> click
> > > > on the refresh fields button but it all works). In your case you would
> have
> > > > the @.Database parameter be based on a list they choose from CompanyA,
> > > > CompanyB where the value for the selection would be the database name.
> > > >
> > > > To do what you want will require a little more messing around. You
> could
> > > > first develop against one database to make sure you have the query
> correct
> > > > and then change it to be dynamic.
> > > >
> > > >
> > > > --
> > > > Bruce Loehle-Conger
> > > > MVP SQL Server Reporting Services
> > > >
> > > >
> > > > "Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
> > > > news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> > > > > Let me preface this by stating that I am a Reporting Services
> newbie...
> > > > >
> > > > > I need to design a report that displays financial data for 2
> companies,
> > > > > Company A and Company B. The problem is that each company has their
> own
> > > > > distinct database. The schema is identical between them, just
> different
> > > > data
> > > > > in each.
> > > > >
> > > > > The report is identical for each company, the only different is that
> the
> > > > > report needs to pull from Database A to display the report data for
> > > > Company
> > > > > A, and alternatively pull from Database B to display the report data
> for
> > > > > Company B. The user wants to be able to specify whether they want to
> run
> > > > the
> > > > > report for Company A, or Company B.
> > > > >
> > > > > How can I design the report or setup the data source to switch
> databases
> > > > > depending on if the user wants to see the report for Company A or
> Company
> > > > B?
> > > > > Can this be done with a report parameter? If so, how?
> > > > >
> > > > > I really don't want to create and maintain 2 identical reports, the
> only
> > > > > difference being the data source.
> > > > >
> > > > > One possible option I guess would be to create a view that combines
> data
> > > > > from identical tables in both databases, and use that view as the
> > > > datasource
> > > > > in the report.
> > > > >
> > > > > Just looking for what others have done in similar circumstances so I
> don't
> > > > > spend multiple days architecting the wrong approach.
> > > > >
> > > > > Thanks!
> > > >
> > > >
> > > >
>
>|||declare @.SQL varchar(255)
select @.SQL = 'select max(somefield) from ' + @.Server +
'.database.dbo.tablename'
exec (@.SQL)
Four part naming works but it is dangerous. You are better off to use
OpenQuery as you are. Yukon handles 4 part naming better than it does now.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Aiwa" <Aiwa@.discussions.microsoft.com> wrote in message
news:D906328F-8E54-425D-8E29-7C3636EEFDFD@.microsoft.com...
> Hi Bruce,
> Thanks for the heads up.
> I'm actually using OpenQuery since it looks like the only way to abstract
> the database name when using a linked server.
> Is there a better way to do this ?
> Thanks,
> Eric
> "Bruce L-C [MVP]" wrote:
> > In this case he has two databases that the customer wants to pick which
one
> > to report off of.
> >
> > Also, I would be very very careful with linked servers, especially if
you
> > are using the four part naming. You could easily get burned. It takes
very
> > little for SQL Server to decide to bring the whole table over and
process it
> > locally. It is not doing a passthrough query. It seems like it would
just
> > send the SQL to the remote server for processing but that is not what
> > happens with 4 part naming. This is what happens with OpenQuery but if
you
> > are using 4 part naming then you could easily find yourself with a major
> > performance headache when you roll out to production.
> >
> > Just a heads up on the dangers of linked servers.
> >
> > --
> > Bruce Loehle-Conger
> > MVP SQL Server Reporting Services
> >
> >
> > "Aiwa" <Aiwa@.discussions.microsoft.com> wrote in message
> > news:2C43C2F9-BC10-4951-87FD-428CDF9D1D69@.microsoft.com...
> > > Hi,
> > >
> > > What i'm currently doing is creating a reporting database that will
> > include
> > > all my reports stored procedure and have those stored procedure
accessing
> > my
> > > OLTP data through a linked server. This way, if i need to install my
> > > reporting solution at a new customer site, I only need to modify my
linked
> > > server parameters.
> > >
> > > Hope this helps,
> > > Eric
> > >
> > > "Smit-Dog" wrote:
> > >
> > > > Thanks Bruce... Looks like 1 of many possible approaches to this
> > problem.
> > > >
> > > > I just found out that it is likely that the customer will be adding
more
> > > > companies, hence addtional databases that the report needs to be run
> > against.
> > > >
> > > > I guess I need to go figure out how to setup and pass parameters to
the
> > > > report to allow the end-user to specify the "root" database name of
the
> > > > company at runtime.
> > > >
> > > > "Bruce L-C [MVP]" wrote:
> > > >
> > > > > Here is one way. It is an interesting technique in that it uses
the
> > ability
> > > > > to run a batch of SQL statement. Use the generic query designer.
Then
> > paste
> > > > > in the following (as an example).
> > > > > declare @.SQL varchar(255)
> > > > > select @.SQL = 'select name from ' + @.Database + '.dbo.sysobjects
where
> > xtype
> > > > > = ''U'' order by name'
> > > > > exec (@.SQL)
> > > > >
> > > > > You can also use an expression but one thing that is nice about
the
> > above
> > > > > method is it will still fill in the field names (sometimes you
have to
> > click
> > > > > on the refresh fields button but it all works). In your case you
would
> > have
> > > > > the @.Database parameter be based on a list they choose from
CompanyA,
> > > > > CompanyB where the value for the selection would be the database
name.
> > > > >
> > > > > To do what you want will require a little more messing around. You
> > could
> > > > > first develop against one database to make sure you have the query
> > correct
> > > > > and then change it to be dynamic.
> > > > >
> > > > >
> > > > > --
> > > > > Bruce Loehle-Conger
> > > > > MVP SQL Server Reporting Services
> > > > >
> > > > >
> > > > > "Smit-Dog" <SmitDog@.discussions.microsoft.com> wrote in message
> > > > > news:43D571CF-ACF4-4BCE-B482-9F49E5817E8C@.microsoft.com...
> > > > > > Let me preface this by stating that I am a Reporting Services
> > newbie...
> > > > > >
> > > > > > I need to design a report that displays financial data for 2
> > companies,
> > > > > > Company A and Company B. The problem is that each company has
their
> > own
> > > > > > distinct database. The schema is identical between them, just
> > different
> > > > > data
> > > > > > in each.
> > > > > >
> > > > > > The report is identical for each company, the only different is
that
> > the
> > > > > > report needs to pull from Database A to display the report data
for
> > > > > Company
> > > > > > A, and alternatively pull from Database B to display the report
data
> > for
> > > > > > Company B. The user wants to be able to specify whether they
want to
> > run
> > > > > the
> > > > > > report for Company A, or Company B.
> > > > > >
> > > > > > How can I design the report or setup the data source to switch
> > databases
> > > > > > depending on if the user wants to see the report for Company A
or
> > Company
> > > > > B?
> > > > > > Can this be done with a report parameter? If so, how?
> > > > > >
> > > > > > I really don't want to create and maintain 2 identical reports,
the
> > only
> > > > > > difference being the data source.
> > > > > >
> > > > > > One possible option I guess would be to create a view that
combines
> > data
> > > > > > from identical tables in both databases, and use that view as
the
> > > > > datasource
> > > > > > in the report.
> > > > > >
> > > > > > Just looking for what others have done in similar circumstances
so I
> > don't
> > > > > > spend multiple days architecting the wrong approach.
> > > > > >
> > > > > > Thanks!
> > > > >
> > > > >
> > > > >
> >
> >
> >

Friday, March 9, 2012

How to drilldown in SOAP-rendered reports

Hi,
we tried the SQLRS-ReportViewer from the
We changed the necessary things to get it to work with the new 2005 web
services. But now we wonder how we can handle drilldowns. In the 2000
versions of the web services there was an url-parameter showhidetoggle which
seemed to be the candidate. But we didn't get it to work. But now even this
parameter seems to have disappeared, and we are not able to find helping
documentaion.
Regards,
RalphThere is a ToggleItem API in the new ReportExecution web service. The
problem with it though is that it takes the id of the item to be expanded
but these IDs are known only when the report is rendered. It's like catch
22... You need the id to call ToggleItem but you cannot easily get it. If
you do some tracing of the incoming SOAP traffic, you will see what I mean.
So, to get this working, you need to parse the report HTML output to find
the image id which may look as follows
<IMG ID="7" BORDER="0"....
Then, when the user clicks you need to invoke ToggleItem passing the image
identifier. If this sounds like a brain surgery, use the VS.NET 2005 report
viewers and be done with it. They handle interactivity for you.
--
HTH,
---
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog: http://www.prologika.com/
---
"Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
> Hi,
> we tried the SQLRS-ReportViewer from the
> We changed the necessary things to get it to work with the new 2005 web
> services. But now we wonder how we can handle drilldowns. In the 2000
> versions of the web services there was an url-parameter showhidetoggle
> which seemed to be the candidate. But we didn't get it to work. But now
> even this parameter seems to have disappeared, and we are not able to find
> helping documentaion.
> Regards,
> Ralph
>|||Hmm, we'd really like to use the report viewer control. But we need some
control on how the parameters are presented. How many in a row, logically
grouped together in a group box,... If we now use a report viewer control on
an asp.net page, i think the drilldown links will go to the old server-url
and our parameters disappear?
On the other hand we will have to use drill-through-links not directly to
another report, but trough an url and put together the path and parameters
on our own. And this will be a very long string where a lot of mistakes can
be done...
Is this the only way to get control over parameter layout?
"Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im Newsbeitrag
news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
> There is a ToggleItem API in the new ReportExecution web service. The
> problem with it though is that it takes the id of the item to be expanded
> but these IDs are known only when the report is rendered. It's like catch
> 22... You need the id to call ToggleItem but you cannot easily get it. If
> you do some tracing of the incoming SOAP traffic, you will see what I
> mean. So, to get this working, you need to parse the report HTML output to
> find the image id which may look as follows
> <IMG ID="7" BORDER="0"....
> Then, when the user clicks you need to invoke ToggleItem passing the image
> identifier. If this sounds like a brain surgery, use the VS.NET 2005
> report viewers and be done with it. They handle interactivity for you.
> --
> HTH,
> ---
> Teo Lachev, MVP, MCSD, MCT
> "Microsoft Reporting Services in Action"
> "Applied Microsoft Analysis Services 2005"
> Home page and blog: http://www.prologika.com/
> ---
> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>> we tried the SQLRS-ReportViewer from the
>> We changed the necessary things to get it to work with the new 2005 web
>> services. But now we wonder how we can handle drilldowns. In the 2000
>> versions of the web services there was an url-parameter showhidetoggle
>> which seemed to be the candidate. But we didn't get it to work. But now
>> even this parameter seems to have disappeared, and we are not able to
>> find helping documentaion.
>> Regards,
>> Ralph
>>
>|||So, just replace the toolbar then if you need more control over the Report
Viewer toolbar.
--
HTH,
---
Teo Lachev, MVP, MCSD, MCT
"Microsoft Reporting Services in Action"
"Applied Microsoft Analysis Services 2005"
Home page and blog: http://www.prologika.com/
---
"Ralph Watermann" <We.Want@.NoSpam.de> wrote in message
news:OcKGmPf6FHA.1276@.TK2MSFTNGP09.phx.gbl...
> Hmm, we'd really like to use the report viewer control. But we need some
> control on how the parameters are presented. How many in a row, logically
> grouped together in a group box,... If we now use a report viewer control
> on an asp.net page, i think the drilldown links will go to the old
> server-url and our parameters disappear?
> On the other hand we will have to use drill-through-links not directly to
> another report, but trough an url and put together the path and parameters
> on our own. And this will be a very long string where a lot of mistakes
> can be done...
> Is this the only way to get control over parameter layout?
> "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im
> Newsbeitrag news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
>> There is a ToggleItem API in the new ReportExecution web service. The
>> problem with it though is that it takes the id of the item to be expanded
>> but these IDs are known only when the report is rendered. It's like catch
>> 22... You need the id to call ToggleItem but you cannot easily get it. If
>> you do some tracing of the incoming SOAP traffic, you will see what I
>> mean. So, to get this working, you need to parse the report HTML output
>> to find the image id which may look as follows
>> <IMG ID="7" BORDER="0"....
>> Then, when the user clicks you need to invoke ToggleItem passing the
>> image identifier. If this sounds like a brain surgery, use the VS.NET
>> 2005 report viewers and be done with it. They handle interactivity for
>> you.
>> --
>> HTH,
>> ---
>> Teo Lachev, MVP, MCSD, MCT
>> "Microsoft Reporting Services in Action"
>> "Applied Microsoft Analysis Services 2005"
>> Home page and blog: http://www.prologika.com/
>> ---
>> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
>> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
>> Hi,
>> we tried the SQLRS-ReportViewer from the
>> We changed the necessary things to get it to work with the new 2005 web
>> services. But now we wonder how we can handle drilldowns. In the 2000
>> versions of the web services there was an url-parameter showhidetoggle
>> which seemed to be the candidate. But we didn't get it to work. But now
>> even this parameter seems to have disappeared, and we are not able to
>> find helping documentaion.
>> Regards,
>> Ralph
>>
>>
>|||Teo
Could you give me an example on how to call the ToggleItem method? Do I need
to call it together with LoadReport, SetExecutionParameters and Render? If
yes, in what order do I call it? I have experimented calling it in all kinds
of order but haven't been able to get it to work ...
BTW, I think I have found a better way to find the ID of the item that is to
be toggled - you can get it from the query string, like:
Request.QueryString["rs:ShowHideToggle"].
Any help would be much appreciated
mike
"Teo Lachev [MVP]" wrote:
> So, just replace the toolbar then if you need more control over the Report
> Viewer toolbar.
> --
> HTH,
> ---
> Teo Lachev, MVP, MCSD, MCT
> "Microsoft Reporting Services in Action"
> "Applied Microsoft Analysis Services 2005"
> Home page and blog: http://www.prologika.com/
> ---
> "Ralph Watermann" <We.Want@.NoSpam.de> wrote in message
> news:OcKGmPf6FHA.1276@.TK2MSFTNGP09.phx.gbl...
> > Hmm, we'd really like to use the report viewer control. But we need some
> > control on how the parameters are presented. How many in a row, logically
> > grouped together in a group box,... If we now use a report viewer control
> > on an asp.net page, i think the drilldown links will go to the old
> > server-url and our parameters disappear?
> >
> > On the other hand we will have to use drill-through-links not directly to
> > another report, but trough an url and put together the path and parameters
> > on our own. And this will be a very long string where a lot of mistakes
> > can be done...
> >
> > Is this the only way to get control over parameter layout?
> >
> > "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im
> > Newsbeitrag news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
> >> There is a ToggleItem API in the new ReportExecution web service. The
> >> problem with it though is that it takes the id of the item to be expanded
> >> but these IDs are known only when the report is rendered. It's like catch
> >> 22... You need the id to call ToggleItem but you cannot easily get it. If
> >> you do some tracing of the incoming SOAP traffic, you will see what I
> >> mean. So, to get this working, you need to parse the report HTML output
> >> to find the image id which may look as follows
> >> <IMG ID="7" BORDER="0"....
> >>
> >> Then, when the user clicks you need to invoke ToggleItem passing the
> >> image identifier. If this sounds like a brain surgery, use the VS.NET
> >> 2005 report viewers and be done with it. They handle interactivity for
> >> you.
> >>
> >> --
> >> HTH,
> >> ---
> >> Teo Lachev, MVP, MCSD, MCT
> >> "Microsoft Reporting Services in Action"
> >> "Applied Microsoft Analysis Services 2005"
> >> Home page and blog: http://www.prologika.com/
> >> ---
> >> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
> >> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
> >> Hi,
> >>
> >> we tried the SQLRS-ReportViewer from the
> >>
> >> We changed the necessary things to get it to work with the new 2005 web
> >> services. But now we wonder how we can handle drilldowns. In the 2000
> >> versions of the web services there was an url-parameter showhidetoggle
> >> which seemed to be the candidate. But we didn't get it to work. But now
> >> even this parameter seems to have disappeared, and we are not able to
> >> find helping documentaion.
> >>
> >> Regards,
> >> Ralph
> >>
> >>
> >>
> >>
> >
> >
>
>|||Mike,
From what I have found, you need to actually call the Render method twice.
I have not been able to get reproducible results using a single call to the
render method. Here is some code that works for me:
byte[] result = null;
string reportPath = "/Accounting/Monthly Revenue Projection
DrillDown";
string format = "IMAGE";
string historyID = null;
string devInfo =@."<DeviceInfo><OutputFormat>EMF</OutputFormat><StartPage>0</StartPage></DeviceInfo>";
ParameterValue[] parameters = new ParameterValue[1];
parameters[0] = new ParameterValue();
parameters[0].Name = "BillCycle";
parameters[0].Value = "305";
string encoding;
string mimeType;
string extension;
Warning[] warnings = null;
string[] streamIDs = null;
try
{
ExecutionInfo execInfo = new ExecutionInfo();
ExecutionHeader execHeader = new ExecutionHeader();
rs.ExecutionHeaderValue = execHeader;
execInfo = rs.LoadReport(reportPath, historyID);
rs.SetExecutionParameters(parameters, "en-us");
String SessionId = rs.ExecutionHeaderValue.ExecutionID;
System.Diagnostics.Debug.WriteLine("SessionID: {0}",
rs.ExecutionHeaderValue.ExecutionID);
result = rs.Render(format, devInfo, out extension, out encoding,
out mimeType, out warnings, out streamIDs);
System.Diagnostics.Debug.WriteLine("Stream IDs: " +
streamIDs.Length);
#region Apply Toggle Drilldown
bool resultToggle = false;
resultToggle = rs.ToggleItem("1236");
result = rs.Render(format, devInfo, out extension, out encoding,
out mimeType, out warnings, out streamIDs);
#endregion
execInfo = rs.GetExecutionInfo();
System.Diagnostics.Debug.WriteLine(string.Format("Execution date
and time: {0}", execInfo.ExecutionDateTime));
}
catch (SoapException e)
{
System.Diagnostics.Debug.WriteLine(e.Detail.OuterXml);
}
Jeff
"mikel" wrote:
> Teo
> Could you give me an example on how to call the ToggleItem method? Do I need
> to call it together with LoadReport, SetExecutionParameters and Render? If
> yes, in what order do I call it? I have experimented calling it in all kinds
> of order but haven't been able to get it to work ...
> BTW, I think I have found a better way to find the ID of the item that is to
> be toggled - you can get it from the query string, like:
> Request.QueryString["rs:ShowHideToggle"].
> Any help would be much appreciated
> mike
> "Teo Lachev [MVP]" wrote:
> > So, just replace the toolbar then if you need more control over the Report
> > Viewer toolbar.
> >
> > --
> > HTH,
> > ---
> > Teo Lachev, MVP, MCSD, MCT
> > "Microsoft Reporting Services in Action"
> > "Applied Microsoft Analysis Services 2005"
> > Home page and blog: http://www.prologika.com/
> > ---
> > "Ralph Watermann" <We.Want@.NoSpam.de> wrote in message
> > news:OcKGmPf6FHA.1276@.TK2MSFTNGP09.phx.gbl...
> > > Hmm, we'd really like to use the report viewer control. But we need some
> > > control on how the parameters are presented. How many in a row, logically
> > > grouped together in a group box,... If we now use a report viewer control
> > > on an asp.net page, i think the drilldown links will go to the old
> > > server-url and our parameters disappear?
> > >
> > > On the other hand we will have to use drill-through-links not directly to
> > > another report, but trough an url and put together the path and parameters
> > > on our own. And this will be a very long string where a lot of mistakes
> > > can be done...
> > >
> > > Is this the only way to get control over parameter layout?
> > >
> > > "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im
> > > Newsbeitrag news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
> > >> There is a ToggleItem API in the new ReportExecution web service. The
> > >> problem with it though is that it takes the id of the item to be expanded
> > >> but these IDs are known only when the report is rendered. It's like catch
> > >> 22... You need the id to call ToggleItem but you cannot easily get it. If
> > >> you do some tracing of the incoming SOAP traffic, you will see what I
> > >> mean. So, to get this working, you need to parse the report HTML output
> > >> to find the image id which may look as follows
> > >> <IMG ID="7" BORDER="0"....
> > >>
> > >> Then, when the user clicks you need to invoke ToggleItem passing the
> > >> image identifier. If this sounds like a brain surgery, use the VS.NET
> > >> 2005 report viewers and be done with it. They handle interactivity for
> > >> you.
> > >>
> > >> --
> > >> HTH,
> > >> ---
> > >> Teo Lachev, MVP, MCSD, MCT
> > >> "Microsoft Reporting Services in Action"
> > >> "Applied Microsoft Analysis Services 2005"
> > >> Home page and blog: http://www.prologika.com/
> > >> ---
> > >> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
> > >> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
> > >> Hi,
> > >>
> > >> we tried the SQLRS-ReportViewer from the
> > >>
> > >> We changed the necessary things to get it to work with the new 2005 web
> > >> services. But now we wonder how we can handle drilldowns. In the 2000
> > >> versions of the web services there was an url-parameter showhidetoggle
> > >> which seemed to be the candidate. But we didn't get it to work. But now
> > >> even this parameter seems to have disappeared, and we are not able to
> > >> find helping documentaion.
> > >>
> > >> Regards,
> > >> Ralph
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> >
> >
> >|||Jeff
Thanks for your reply.
I did manage to get ToggleItem to work for HTML4.0 output with calling
Render only once (that is if you don't count the first call to Render to
display the report initially).
I noticed that in your example you were outputing your report to image. So,
since there is no ability for the user to toggle/untoggle items by clicking
on the report, I can see how would have to call Render twice. ToggleItem
needs to be called on an existing execution and will in fact fail if the
execution expires.
What I am having problems with now is trying to export the report to PDF in
its toggled state. No matter what I try (including calling Render twice), it
always comes back with all toggle items collapsed. Do you have any
suggestions on that?
"jgeerwm" wrote:
> Mike,
> From what I have found, you need to actually call the Render method twice.
> I have not been able to get reproducible results using a single call to the
> render method. Here is some code that works for me:
> byte[] result = null;
> string reportPath = "/Accounting/Monthly Revenue Projection
> DrillDown";
> string format = "IMAGE";
> string historyID = null;
> string devInfo => @."<DeviceInfo><OutputFormat>EMF</OutputFormat><StartPage>0</StartPage></DeviceInfo>";
> ParameterValue[] parameters = new ParameterValue[1];
> parameters[0] = new ParameterValue();
> parameters[0].Name = "BillCycle";
> parameters[0].Value = "305";
> string encoding;
> string mimeType;
> string extension;
> Warning[] warnings = null;
> string[] streamIDs = null;
> try
> {
> ExecutionInfo execInfo = new ExecutionInfo();
> ExecutionHeader execHeader = new ExecutionHeader();
> rs.ExecutionHeaderValue = execHeader;
> execInfo = rs.LoadReport(reportPath, historyID);
> rs.SetExecutionParameters(parameters, "en-us");
> String SessionId = rs.ExecutionHeaderValue.ExecutionID;
> System.Diagnostics.Debug.WriteLine("SessionID: {0}",
> rs.ExecutionHeaderValue.ExecutionID);
> result = rs.Render(format, devInfo, out extension, out encoding,
> out mimeType, out warnings, out streamIDs);
> System.Diagnostics.Debug.WriteLine("Stream IDs: " +
> streamIDs.Length);
> #region Apply Toggle Drilldown
> bool resultToggle = false;
> resultToggle = rs.ToggleItem("1236");
> result = rs.Render(format, devInfo, out extension, out encoding,
> out mimeType, out warnings, out streamIDs);
> #endregion
> execInfo = rs.GetExecutionInfo();
> System.Diagnostics.Debug.WriteLine(string.Format("Execution date
> and time: {0}", execInfo.ExecutionDateTime));
> }
> catch (SoapException e)
> {
> System.Diagnostics.Debug.WriteLine(e.Detail.OuterXml);
> }
> Jeff
> "mikel" wrote:
> > Teo
> >
> > Could you give me an example on how to call the ToggleItem method? Do I need
> > to call it together with LoadReport, SetExecutionParameters and Render? If
> > yes, in what order do I call it? I have experimented calling it in all kinds
> > of order but haven't been able to get it to work ...
> >
> > BTW, I think I have found a better way to find the ID of the item that is to
> > be toggled - you can get it from the query string, like:
> > Request.QueryString["rs:ShowHideToggle"].
> >
> > Any help would be much appreciated
> >
> > mike
> >
> > "Teo Lachev [MVP]" wrote:
> >
> > > So, just replace the toolbar then if you need more control over the Report
> > > Viewer toolbar.
> > >
> > > --
> > > HTH,
> > > ---
> > > Teo Lachev, MVP, MCSD, MCT
> > > "Microsoft Reporting Services in Action"
> > > "Applied Microsoft Analysis Services 2005"
> > > Home page and blog: http://www.prologika.com/
> > > ---
> > > "Ralph Watermann" <We.Want@.NoSpam.de> wrote in message
> > > news:OcKGmPf6FHA.1276@.TK2MSFTNGP09.phx.gbl...
> > > > Hmm, we'd really like to use the report viewer control. But we need some
> > > > control on how the parameters are presented. How many in a row, logically
> > > > grouped together in a group box,... If we now use a report viewer control
> > > > on an asp.net page, i think the drilldown links will go to the old
> > > > server-url and our parameters disappear?
> > > >
> > > > On the other hand we will have to use drill-through-links not directly to
> > > > another report, but trough an url and put together the path and parameters
> > > > on our own. And this will be a very long string where a lot of mistakes
> > > > can be done...
> > > >
> > > > Is this the only way to get control over parameter layout?
> > > >
> > > > "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im
> > > > Newsbeitrag news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
> > > >> There is a ToggleItem API in the new ReportExecution web service. The
> > > >> problem with it though is that it takes the id of the item to be expanded
> > > >> but these IDs are known only when the report is rendered. It's like catch
> > > >> 22... You need the id to call ToggleItem but you cannot easily get it. If
> > > >> you do some tracing of the incoming SOAP traffic, you will see what I
> > > >> mean. So, to get this working, you need to parse the report HTML output
> > > >> to find the image id which may look as follows
> > > >> <IMG ID="7" BORDER="0"....
> > > >>
> > > >> Then, when the user clicks you need to invoke ToggleItem passing the
> > > >> image identifier. If this sounds like a brain surgery, use the VS.NET
> > > >> 2005 report viewers and be done with it. They handle interactivity for
> > > >> you.
> > > >>
> > > >> --
> > > >> HTH,
> > > >> ---
> > > >> Teo Lachev, MVP, MCSD, MCT
> > > >> "Microsoft Reporting Services in Action"
> > > >> "Applied Microsoft Analysis Services 2005"
> > > >> Home page and blog: http://www.prologika.com/
> > > >> ---
> > > >> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
> > > >> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
> > > >> Hi,
> > > >>
> > > >> we tried the SQLRS-ReportViewer from the
> > > >>
> > > >> We changed the necessary things to get it to work with the new 2005 web
> > > >> services. But now we wonder how we can handle drilldowns. In the 2000
> > > >> versions of the web services there was an url-parameter showhidetoggle
> > > >> which seemed to be the candidate. But we didn't get it to work. But now
> > > >> even this parameter seems to have disappeared, and we are not able to
> > > >> find helping documentaion.
> > > >>
> > > >> Regards,
> > > >> Ralph
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > >
> > >
> > >|||OK. I have figured it out.
For anyone else that may be experiencing the same problem. If you render
your report as HTML4.0, then you toggle some report items, then if you want
to export the report to another format like PDF or image in its toggled
state, you need to:
1. Reuse the reference to ExecutionService that you have preserved in let's
say Session between calls
ReportExecution.ReportExecutionService rsExec =(ReportExecutionService)Session["rs"];
2. Set report parameters that you have also preserved between calls
rsExec.SetExecutionParameters((ReportExecution.ParameterValue[])
Session("reportParameterValues"], "en-us");
3. DO NOT call rsExec.ToggleItem - you are reusing the original report
execution, and if you call ToggleItem again this will have the effect of
untoggling the items that you have previously toggled
4. Set up device info and call Render as normal - Jeff's post 2 posts back
is a good example of how to.
"mikel" wrote:
> Jeff
> Thanks for your reply.
> I did manage to get ToggleItem to work for HTML4.0 output with calling
> Render only once (that is if you don't count the first call to Render to
> display the report initially).
> I noticed that in your example you were outputing your report to image. So,
> since there is no ability for the user to toggle/untoggle items by clicking
> on the report, I can see how would have to call Render twice. ToggleItem
> needs to be called on an existing execution and will in fact fail if the
> execution expires.
> What I am having problems with now is trying to export the report to PDF in
> its toggled state. No matter what I try (including calling Render twice), it
> always comes back with all toggle items collapsed. Do you have any
> suggestions on that?
>
> "jgeerwm" wrote:
> > Mike,
> >
> > From what I have found, you need to actually call the Render method twice.
> > I have not been able to get reproducible results using a single call to the
> > render method. Here is some code that works for me:
> >
> > byte[] result = null;
> >
> > string reportPath = "/Accounting/Monthly Revenue Projection
> > DrillDown";
> > string format = "IMAGE";
> > string historyID = null;
> > string devInfo => > @."<DeviceInfo><OutputFormat>EMF</OutputFormat><StartPage>0</StartPage></DeviceInfo>";
> >
> > ParameterValue[] parameters = new ParameterValue[1];
> > parameters[0] = new ParameterValue();
> > parameters[0].Name = "BillCycle";
> > parameters[0].Value = "305";
> >
> > string encoding;
> > string mimeType;
> > string extension;
> > Warning[] warnings = null;
> > string[] streamIDs = null;
> >
> > try
> > {
> > ExecutionInfo execInfo = new ExecutionInfo();
> > ExecutionHeader execHeader = new ExecutionHeader();
> >
> > rs.ExecutionHeaderValue = execHeader;
> >
> > execInfo = rs.LoadReport(reportPath, historyID);
> >
> > rs.SetExecutionParameters(parameters, "en-us");
> > String SessionId = rs.ExecutionHeaderValue.ExecutionID;
> >
> > System.Diagnostics.Debug.WriteLine("SessionID: {0}",
> > rs.ExecutionHeaderValue.ExecutionID);
> >
> > result = rs.Render(format, devInfo, out extension, out encoding,
> > out mimeType, out warnings, out streamIDs);
> >
> > System.Diagnostics.Debug.WriteLine("Stream IDs: " +
> > streamIDs.Length);
> >
> > #region Apply Toggle Drilldown
> >
> > bool resultToggle = false;
> >
> > resultToggle = rs.ToggleItem("1236");
> > result = rs.Render(format, devInfo, out extension, out encoding,
> > out mimeType, out warnings, out streamIDs);
> >
> > #endregion
> >
> > execInfo = rs.GetExecutionInfo();
> > System.Diagnostics.Debug.WriteLine(string.Format("Execution date
> > and time: {0}", execInfo.ExecutionDateTime));
> >
> > }
> > catch (SoapException e)
> > {
> > System.Diagnostics.Debug.WriteLine(e.Detail.OuterXml);
> > }
> >
> > Jeff
> >
> > "mikel" wrote:
> >
> > > Teo
> > >
> > > Could you give me an example on how to call the ToggleItem method? Do I need
> > > to call it together with LoadReport, SetExecutionParameters and Render? If
> > > yes, in what order do I call it? I have experimented calling it in all kinds
> > > of order but haven't been able to get it to work ...
> > >
> > > BTW, I think I have found a better way to find the ID of the item that is to
> > > be toggled - you can get it from the query string, like:
> > > Request.QueryString["rs:ShowHideToggle"].
> > >
> > > Any help would be much appreciated
> > >
> > > mike
> > >
> > > "Teo Lachev [MVP]" wrote:
> > >
> > > > So, just replace the toolbar then if you need more control over the Report
> > > > Viewer toolbar.
> > > >
> > > > --
> > > > HTH,
> > > > ---
> > > > Teo Lachev, MVP, MCSD, MCT
> > > > "Microsoft Reporting Services in Action"
> > > > "Applied Microsoft Analysis Services 2005"
> > > > Home page and blog: http://www.prologika.com/
> > > > ---
> > > > "Ralph Watermann" <We.Want@.NoSpam.de> wrote in message
> > > > news:OcKGmPf6FHA.1276@.TK2MSFTNGP09.phx.gbl...
> > > > > Hmm, we'd really like to use the report viewer control. But we need some
> > > > > control on how the parameters are presented. How many in a row, logically
> > > > > grouped together in a group box,... If we now use a report viewer control
> > > > > on an asp.net page, i think the drilldown links will go to the old
> > > > > server-url and our parameters disappear?
> > > > >
> > > > > On the other hand we will have to use drill-through-links not directly to
> > > > > another report, but trough an url and put together the path and parameters
> > > > > on our own. And this will be a very long string where a lot of mistakes
> > > > > can be done...
> > > > >
> > > > > Is this the only way to get control over parameter layout?
> > > > >
> > > > > "Teo Lachev [MVP]" <teo.lachev@.nospam.prologika.com> schrieb im
> > > > > Newsbeitrag news:eaJw4ge6FHA.2888@.tk2msftngp13.phx.gbl...
> > > > >> There is a ToggleItem API in the new ReportExecution web service. The
> > > > >> problem with it though is that it takes the id of the item to be expanded
> > > > >> but these IDs are known only when the report is rendered. It's like catch
> > > > >> 22... You need the id to call ToggleItem but you cannot easily get it. If
> > > > >> you do some tracing of the incoming SOAP traffic, you will see what I
> > > > >> mean. So, to get this working, you need to parse the report HTML output
> > > > >> to find the image id which may look as follows
> > > > >> <IMG ID="7" BORDER="0"....
> > > > >>
> > > > >> Then, when the user clicks you need to invoke ToggleItem passing the
> > > > >> image identifier. If this sounds like a brain surgery, use the VS.NET
> > > > >> 2005 report viewers and be done with it. They handle interactivity for
> > > > >> you.
> > > > >>
> > > > >> --
> > > > >> HTH,
> > > > >> ---
> > > > >> Teo Lachev, MVP, MCSD, MCT
> > > > >> "Microsoft Reporting Services in Action"
> > > > >> "Applied Microsoft Analysis Services 2005"
> > > > >> Home page and blog: http://www.prologika.com/
> > > > >> ---
> > > > >> "Ralph Watermann" <Ralph.Watermann@.webtelligence.net> wrote in message
> > > > >> news:%23W0uysb6FHA.268@.TK2MSFTNGP10.phx.gbl...
> > > > >> Hi,
> > > > >>
> > > > >> we tried the SQLRS-ReportViewer from the
> > > > >>
> > > > >> We changed the necessary things to get it to work with the new 2005 web
> > > > >> services. But now we wonder how we can handle drilldowns. In the 2000
> > > > >> versions of the web services there was an url-parameter showhidetoggle
> > > > >> which seemed to be the candidate. But we didn't get it to work. But now
> > > > >> even this parameter seems to have disappeared, and we are not able to
> > > > >> find helping documentaion.
> > > > >>
> > > > >> Regards,
> > > > >> Ralph
> > > > >>
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > >
> > > >
> > > >

How to drill down on fields

Hi All ,

I am new to Sql Server and Reporting services ..

I was trying to make a drill down report

I have created Grooup on detail row and set the Visibility with one of the group rows just above ..

But when preview the report I cannot see any data ..

How ever If I Delete the Groups I can see the data ..

Is there anything that I am missing Please help

Did you specify the toggle item ? Otherwise you won′t be able to toggel the hidden rows.

Jens K. Suessmeyer.

http://www.sqlserver2005.de
|||

Hi Jens ,

Thanks for did that and am able to see the data ..

Wednesday, March 7, 2012

How to do this in OLAP report?

I am using SQL 2005 Reporting Services. I need to create an OLAP report. The suitation is similiar to a sub-query in Store Procedure. I am not sure how to do this in an OLAP dataset. The OLAP cube has been prepared using SQL 2005 AS. I believe that this report requires two datasets and it is based on the same OLAP cube. The report itself is based on the second dataset. The first dataset require the user to input two parameters. The second dataset uses two of the fields from the first dataset to filter out the second dataset. I can create the two datasets but I dont know how to assign the two parameters on the second dataset which is depends on the result of the first dataset. Any samples or steps or procedures using SQL 2005 RS would be great. Thanks a million.

If I am not mistaken, the first dataset is nothing but a query which contains two fields from the dimension that you will use it as a parameter and the second dataset is a query that should be filtered based on the two parameters.

So, first create the dataset which retrieve the two fields

then, click the layout tab and go to the report parameter dialog box and create the parameters, and make sure that the avialable values comes from the query (to do this, from the Available values column select the "From query" radio button and select the dataset name that you have created earlier.)

Finally, when you are creating the second dataset, filter your query based on those parameters.

I hope this will help.

Sincerely,

--Amde

Friday, February 24, 2012

How to do SharePoint Site Replication?

How can I replicate SharePoint Site to other SharePoint Site?
Does SharePoint Portal Services support replication between two sites?
Any help is much appreciated. Thanks
According to MS support, SQL replication is not supported by
Sharepoint"
I tried to replicate data in the content database using transactional
replication and editors of sharepoint sites got errors when trying to
upload files to sharepoint sites.
On Wed, 26 Oct 2005 13:06:05 -0700, =?Utf-8?B?SGFzaGVy?=
<Hasher@.discussions.microsoft.com> wrote:

>How can I replicate SharePoint Site to other SharePoint Site?
>Does SharePoint Portal Services support replication between two sites?
>Any help is much appreciated. Thanks

how to do interactive sorting in sql reporting services 2000

I'm trying to configure a report to sort when a Field(colunm) header is
clicked. I have know idea how to do this. Any help appreciated.
Thanks,
JimHii Jim,
This a new feature of RS 2005, which can be set by using the UserSort
properties on a textbox. For example, select a column header textbox
on your report, then right click and select properties. On the
Interactive Sort tab, check the box to enable the sort and set the
specific expression and scope for the sort.
I'm not aware of any similar feature in RS 2000, but you could use
parameter(s) to prompt a user at report run time. Not interactive, but
at least flexible.
HTH
Matt A
Reporting Services Newsletter at www.reportarchitex.com
Jims wrote:
> I'm trying to configure a report to sort when a Field(colunm) header is
> clicked. I have know idea how to do this. Any help appreciated.
> Thanks,
> Jim