Passing collection parameter to JasperServer report via query string - jasper-reports

I'm trying to pass a collection parameter to a report. This report is shown inside an IFRAME and I'm passing the parameter this way:
I want to insert a report in an iframe in my web application.
The report has a "collection" parameter IdTurno. In the query-string I'm passing values this way:
http:jasper_server_url?ids=1,2,3
but this doesn't work.
What's the correct way to pass collection parameters via query string?
Can't find documentation about this.
Note I'm using JasperServer community edition v.5.1

Related

How to pass 3 query parameter in talend tRESTClient

I'm using Talend Big Data for pulling data from HP ALM to mongoDB using tRESTClient. Already i am passing two query parameters(query,page-size) in tRESTClient. Now i have tried with one more parameter last-modified like this query1={last-modified[>=(2017-06-21)]}. But it is not taking as a parameter.
Below i've mentioned tRESTClient component detail.
How can i pass 3rd parameter with the tRESTClient?
Just bellow the Query parameters box, you can find easily a green + button that adds new line for a new paramerter

Cant set array parameter value in jasper server

I publish a report in jasper server.The report contains two parameter, customer_id and query. The parameter query is an array and its class is java.util.List. The report is working in jasper soft studio. But i cant set parameter in jasperserver please refer the below image
How can i set array parameter in that query field?
You should set java.util.Collection instead of java.util.List as the class if you want to multi-select list values.
Refer to this link for detailed instructions.
If you wanna just have single select from the list then set the class to String or number.

Insert URL into BIRT Report that contains dynamic parameters

I am fairly new to BIRT and I am working on adding some new functionality to one of our existing reports.
We have an application that makes a call to BIRT to generate the report in question. When this report is generated I would like to include a URL at the bottom of the report.
The only issue is that the URL would contain two parameters that are different for each report that gets generated. I created a data source and a data set that I can pull the parameters from, but I am not sure how to create a URL with the parameters that relate to the particular report that is being generated.
I have read that you can create a label and insert a hyperlink, but this doesn't seem to be of much help in my situation.
The URL that gets inserted into the report would need to look as follows:
localhost:8080/Application?key=firstParameter&securityString=secondParameter
Please let me know if I did not explain my situation thoroughly or if you need more clarification.
Best Regards,
-Dave
There are multiple ways to do this.
For example insert a new "Data" element to the report, set the datatype to "String" and enter as expression the text you want to display, i.e. "My URL" (with quotes because it is an expression).
Then click on "Binding" tab of this data element and select your dataset. Answer no to the question "Do you want to clear existing binding". In the popup, select all columns required to build the URL.
Finally use hyperlink property of the data element. May be you missed it can be an expression:
This pops up an expression builder, in your case this would result in something like:
"localhost:8080/Application?key="+row["firstParameter"]+"&securityString="+row["secondParameter"]

Call a sproc passing parameters from different sproc in Crystal Reports

I am writing some custom reports for some 3rd party software. The software provides stored procedures from which to get my data.
One of the new requirements for my report is to get the data for an order, then if there is an associated order, then run the same sproc using the associated order's data.
Basically:
Order #1 is associated with Order #2, I need to:
Run sproc GetOrderInfo (pass parameter OrderId = 1)
Look at field AssociatedOrderId (in this case it equals a string value of "2", but could be null or even a blank string [I know I know, but I don't own the database design])
Run sproc GetOrderInfo (pass parameter OrderId = 2 [OrderId is an int])
Display report
Is this possible in Crystal reports? I cannot see a way to set the parameter of the sproc based on other sproc's returned values.
Database is SqlServer, but I doubt that matters.
You can create a subreport, base it on the same stored procedure and link the parameters values of the subreport to a field in the main report

Jasperreport parameter selection from SQL query

I wanted to create a JasperReport which asks the user for a deliverer before it creates a report with data of the last the deliveries of the selected deliverer.
The problem, how I can do that? I found only examples where a parameter is created and the ArrayList is filled statically. But in my parameter I need the query result over the table of deliverers filled.
Can anybody tell me a possible solution?
I'm using Jaspersoft Server 5.1 which directly access a PostgreSQL database which has a datawarehouse structur. So it's not possible to use Java code.
Here is the documentation for adding input controls to reports in JasperReports Server:
http://community.jaspersoft.com/documentation/jasperreports-server-user-guide/adding-input-controls
Scroll down to the section that deals with query-based input controls. Your input control will have a name, such as deliverer. In your report, you must add deliverer as a parameter and reference it in your query, as you have done in your comment.