Allowing user to select report parameter in BIRT - mysql

how to build birt reports with parameters from view page:instead of birts default input box, here user provides required parameter from codeigniter view page.I have built a view page to input parameter. I have used and tested birts feature to allow user input! Now i want to input form codeigniter controller.
Thanks in advance

If I understand correctly, you want to run BIRT report directly from your application without using BIRT default window for filling out report filters (parameters). This can be done by specifying report parameters within URL with which you are calling BIRT report.
Example: http:// host : port /birt/run?__report=report_name.rptdesign&parameter1=parameter1value&parameter2=parameter2value...

Related

Mobile Report Publisher Blank page on preview with parameters

So, I'm trying to make a mobile report with parameters in Mobile Report Publisher.
My dataset is so big and i want to load in my repport only specific items by default.
I define my parameters in my dataset. I find my parameters in the report editor. But when i bind one parameter with one of my selected item, i got a problem. My selection list does not care about my parameter. When i enter in preview mode, i get a blank page.
For information, i foloow the MS tutorial : https://learn.microsoft.com/en-us/sql/reporting-services/mobile-reports/add-parameters-to-a-mobile-report-reporting-services
Even if i write default values in my report's parameters, it do not care about them.
IMG : My parameters binded with my selection lists and my parameters in my DS and my blank page preview
Thanks for helping !
We've had to set our dataset parameters to allow nulls and then the sprocs deal with those else it caused problems in the mobile designer

Embedding SSRS Report Viewer in a webpage

I want to create in my website a navigation for SSRS. I will have left panel with all the reports I have and on the right I will have a div with the report the user selected. can I embedded the SSRS report viewer in an HTML div?
The report viewer you see when going to:
http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f<ReportName>&rs:Command=Render
Also, can I pass username in the URL? I tried to user
http://<server>/ReportServer/Pages/ReportViewer.aspx?%2f<path>%2f<ReportName>&rs:Command=Render&UserId='username'
and I get error:
An attempt was made to set a report parameter 'UserId' that is not defined in this report. (rsUnknownReportParameter)
Thanks
More Info:
I am using DataExtensions and the userid gives me the database I need to connect to. In winforms I can use the Microsoft.Reporting.WinForms.DataSourceCredentials object to specify the DB, but in WebForm I can't use DataSourceCredentials (readonly)
Any ideas?
(rsUnknownReportParameter) means you are trying to set a report parameter that does not exist. I would suggest looking at your report again and making sure its spelled correctly in both SSRS and on your URL.
For your first question the answer is yes, you could create different pages for your reports on your site and use the report viewer control to reference the server reports on those pages. Then on your menu change the div iframe to whatever report you wanted to navigate to. Throw Something like this in your menu button Report
That will change the src of a iframe with the id IframeID. Theres a few different ways to accomplish your question of adding SSRS reports to a web app. This is just my go to method.
Click here for the error msg

Adding a text box for report description before the report executes

Is it possible to add a report description (text) near the parameters area, before the report is run in the Report Builder 3.0. Essentially, when the users click the report and right before they run it, I want to provide them with a small description of what the report does and what the parameters. I can do that in the footer but it wont help, because the footer is only generated after the report has executed. Please let me know.
Thanks.
This is not possible with the default SSRS interface. You'll have to wrap SSRS with your own interface to add this.
To build your own SSRS interface, you can use a few different methods, such as embedding a ReportViewer control in a Asp.NET application, or using URL access in an iframe. See How to change the SSRS input parameters position in report
Of course, with Javascript and client side DOM manipulation, you probably could sneak your content into place, but it's not a supported option.
The main problem is that you can't show a report if parameters are needed for it until those parameters are chosen. If you don't want to provide default parameters another way to solve this problem is by actually having 2 reports.
In report #1 you put the parameters and the text box of instructions, but nothing actually using those parameters.
In report #2 you put the parameters and the actual report.
At the bottom of report #1 have a button, that just goes to report #2 passing the parameters selected.
I've used this technique to provide instructions on parameters when I want a quick-and-dirty solution (as opposed to a proper solution such as what Jamie suggested with embedding)

CRM 2011 Passing QueryString to SSRS Report

I have a report in SSRS that I have in Dynamics CRM 2011 and when the report is run, in the url it passes the id like http://url&id=123-123-123-123. I am trying to make my report in ssrs to grab the id from the query string and use that in the parameters to determine which data to show. Is this possible and if so how would one go about doing it.
Thanks!
CRM actually sends a parameter which can be used to select the filtered view of data that the report was run on. See the report writers guide, and in particular, Using Filters in a Report.
In the simplest case, you would write your main data set to select like so: SELECT <column1>, <column2>, <columnN> FROM FilteredAccount AS CRMAF_FilteredAccount
If that doesn't answer answer your question... You could write an aspx page which embeds the report viewer control. From there you would read the query string, load the report, and then set some parameters based on the query string values. You'd have to have custom ribbon options to launch your custom page.
I had the same problem.
Here is the resolution which worked for me:

ReportViewer Web Control and Dynamic Connection Strings

So I have a report in Reporting Services 2005. In it is one parameter (ConnectionString) which determines which data source the report will use. It also has several other parameters which are dropdown lists derived from the data source chosen in the ConnectionString parameter.
In Report Manager, this works great. All of the dropdowns are greyed out at the beginning. When you choose your data source, the page requeries/repaints and all of the available parameter values for the other parameters are filled in based on the queries for those fields.
However ...
In the ReportViewer web control, when the report is first loaded up, instead of dropdown boxes all of the other parameter fields are just empty textboxes. Choosing a different data source for the ConnectionString parameter doesn't requery/repaint the other parameters.
I've been flipping through the ReportViewer programming reference to see if there's some way to replicate the Report Manager's way of reloading the webpage with the report viewer upon certain parameter changes, but I can't find anything there that isn't over my poor little .NET head.
Any ideas?
Not sure if this is any help but I do have a suggestion. I would try pulling the logic for dropdown boxes out of the report and put them in an ASP.net page. Then pass the parameters to the report and control the rendering/refreshing.
HTH
UPDATE: So it turns out you must provide a default value for any parameters which in turn affect other parameters in your report in order to get the dropdown box to load properly on initialization. Also note this is recursive - so if you have a parameter which affects another parameter which affects another parameter, both the first and second parameter must have default values.