kfung Posted July 29, 2008 Share Posted July 29, 2008 I'm pretty new to jasper reports and jasper server. I'm creating a report within ireport and uploading the report on jasper server. I've looked at the hyperlink sample but it does not show you how to use a hyperlink to another report.I was wondering how do I use a hyperlink to create a drilldown to a subreport? Link to comment Share on other sites More sharing options...
Gaby38 Posted July 29, 2008 Share Posted July 29, 2008 Hello,I give you MY method. It is not perhaps the better one but it works.In the properties of the field I want to use to drill-down, in the "hypertext link" tab, I select "Reference" as link type and I put :"/jasperserver/flow.html?_flowId=viewReportFlow&reportUnit=/reports/Concerto/Test1&Param1=val1&Param2=val2&....." "Test1" is the name of the report in the repository and "/reports/Concerto" is the "Uri" path. Of course "val1" etc... may be in relation with the field itself or other parameters.Till now, this works. Perhaps with the V3 there is another way morre efficient? I don't know.Hope this will help you. Link to comment Share on other sites More sharing options...
kfung Posted July 29, 2008 Author Share Posted July 29, 2008 Thank you! That helped me out so much. Link to comment Share on other sites More sharing options...
navvish Posted November 3, 2009 Share Posted November 3, 2009 Hi,I am also new to JasperReports and I have same issue as mentioned above. I was able to pass the Param1=val1 value in the URL but how can read the Param1 value in the next report? Your help is appreciated.Naveen V Link to comment Share on other sites More sharing options...
Gaby38 Posted November 3, 2009 Share Posted November 3, 2009 You act as if your "next" report was run in stand alone mode, that is:- declare a parameter Param1 in the report- declare an input control with name Param1, even if it seems not usefuland use it as $P{Param1} in the query Link to comment Share on other sites More sharing options...
swood Posted November 23, 2009 Share Posted November 23, 2009 Actually, hyperlinkType = "Reference" is complicated compared to hyperlinkType = "ReportExecution". See below for an example from the Employees sample report. The <hyperlinkParameter name="_report"> is the URI of the destination report. Additional hyperlinkParameters refer to the input controls of the destination report. ShermanJaspersoftCode:<textField isStretchWithOverflow="true" hyperlinkType="ReportExecution"> <reportElement x="410" y="4" width="105" height="16"> <property name="net.sf.jasperreports.export.pdf.tag.td" value="full"/> </reportElement> <textElement textAlignment="Center"/> <textFieldExpression class="java.lang.String"><![CDATA["view"]]></textFieldExpression> <hyperlinkParameter name="_report"> <hyperlinkParameterExpression><![CDATA["/reports/samples/EmployeeAccounts"]]></hyperlinkParameterExpression> </hyperlinkParameter> <hyperlinkParameter name="EmployeeID"> <hyperlinkParameterExpression><![CDATA[$F{id}]]></hyperlinkParameterExpression> </hyperlinkParameter></textField> Link to comment Share on other sites More sharing options...
awoliver777 Posted August 17, 2010 Share Posted August 17, 2010 Sherman,Can you provide me with the equivalent steps in iReport? I tried creating a hyperlink by setting the hyperlink target to blank,hyperlink type to "ReportExecution" and then creating the following Link parameters; Parameter Name - Experession_report = "reportsSpotlight"Hcp_id = $F{Ext_Id}.toStringwhere Hcp_Id is the parameter of the report and $F{Ext_Id} is the value I wish to pass it. The report compiles fine but the link does not work in the ireport viewer or in the browser. When I upload the reports to the JasperServer I get the same results. /uploads/projects/jasperserver/Capture.JPGThis method does work correctly. I was using the wrong value for the "_report" parameter. Also note that the hyplink will only work when the report is run from the JasperServer unless you change the "_report" parameter to point to a local file.Post Edited by awoliver777 at 08/18/2010 15:07Post Edited by awoliver777 at 10/06/2010 16:49 Link to comment Share on other sites More sharing options...
sanjeebb Posted October 5, 2010 Share Posted October 5, 2010 I need a Hyperlinked report (type = 'ReportExecution"). I use iReport APIs to generate the output (using JRExporter API). I don't seem to get the hyperlink to appear in HTML-format outputs. Can somebody help?Thanks, Sanjeeb Link to comment Share on other sites More sharing options...
jeffcaswell Posted May 31, 2012 Share Posted May 31, 2012 I have the same question. Can these work with iReports and JasperReports library only; no JasperServer, and if so, how? Link to comment Share on other sites More sharing options...
ermandeep_singh Posted June 1, 2012 Share Posted June 1, 2012 Hey,The attached document might help..As it was helpful to me. Link to comment Share on other sites More sharing options...
jeffcaswell Posted June 1, 2012 Share Posted June 1, 2012 Thanks, but not really. I need a direct answer, yes or no. All my research so far is saying no. JasperServer is REQUIRED for master-to-subreport hyperlinks to work. Can anyone please positively confirm this? 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