h.c.b. Posted May 2, 2015 Share Posted May 2, 2015 Good evening,i have the following problem. I have three reports and i want call the other two from the main report with an hyperlink. I call my report with a parameter for example ordernumber. In the first report the ordernumber 2 was selected. When i use the the hyperlink, in the second report the ordernumber 1 was selected. How can i pass the parameter from the mainreport via the URL to the second report so that i see the same ordernumer?My link in the Hyperlink is the following:http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2FX&reportUnit=%2Freports%2FX%2FPackst%C3%BCcke_je_AuftragThe Parametername in the report is "$P{Auftragsnummer}". How must i set the parameter in the URL?Thanks for an answer. Link to comment Share on other sites More sharing options...
RamaKrishna.B Posted May 4, 2015 Share Posted May 4, 2015 HI Can you please share your jrxml so that it could be easy for us .Thier is no need to passing the parameers through URL. I think it is possible through normal hyperlink Link to comment Share on other sites More sharing options...
sadakar Posted May 4, 2015 Share Posted May 4, 2015 Refer this one also :1) This will help you http://helicaltech.com/blogs/86/2) Check below to find how you can pass the field value in parameter from one report to another report.. Apply the same logic on text field.http://jasper-bi-suite.blogspot.in/2014/04/drill-down-functionality-example-on.html Link to comment Share on other sites More sharing options...
h.c.b. Posted May 4, 2015 Author Share Posted May 4, 2015 Hey, here the code from the hyperlink:<textField hyperlinkType="Reference"> <reportElement x="180" y="10" width="100" height="39" uuid="f9600c5c-a851-4ab5-ab29-95488e7b1393"/> <textElement> <font size="20"/> </textElement> <textFieldExpression><![CDATA[$P{xxx}]]></textFieldExpression> <hyperlinkReferenceExpression><![CDATA["http://localhost:8080/jasperserver/flow.html?_flowId=viewReportFlow&standAlone=true&_flowId=viewReportFlow&ParentFolderUri=%2Freports%2Fsamples&reportUnit=%2Freports%2Fsamples%2Fxxx%C3%BCcke_xx_xxx"]]></hyperlinkReferenceExpression> </textField>what i have to change that the second report was called with the same parameter from the main report? In the second report the parameter was set in the query. Link to comment Share on other sites More sharing options...
h.c.b. Posted May 4, 2015 Author Share Posted May 4, 2015 Hey when i did the seetings like in the "http://helicaltech.com/blogs/86/" and i choose the hyperlink the main report will be called again. Any idea?Here is the JRXML-Code after my settings:<textField hyperlinkType="ReportExecution" hyperlinkTarget="Blank"> <reportElement x="180" y="10" width="100" height="39" uuid="f9600c5c-a851-4ab5-ab29-95488e7b1393"/> <textElement> <font size="20"/> </textElement> <textFieldExpression><![CDATA[$P{xxx}]]></textFieldExpression> <hyperlinkParameter name="xxx"> <hyperlinkParameterExpression><![CDATA["/reports/samples/xxxxxx]]></hyperlinkParameterExpression> </hyperlinkParameter> </textField>the main report is in root reports/x/xxxwhen i create the report at the jasperserver it set an value list for the main report. When i call the hyperlink the value from the main report should call the detailreport to get the same informations as in the mainreport. Example: In the valuelist i select Order2. And when i call the detailreport i always want to see the Order2. But in the moment i see Order1 in the detailreport. Thats my problem.any idea? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now