arnav_negi Posted October 31, 2011 Share Posted October 31, 2011 Carl, Thanks for the prompt reply. I think we are on same page on almost all things except few here. First, I have an IC in child which prompts for input (along with 2 link parameters from parent which are not supposed to be IC); Second, Child works standalone using this IC. (You suspected what use of child ICs i may have without using those) The problem was to take 2 non-IC parameters in child without prompting for those (This caused problem when child is run stand alone). I think i have got my answer in your discussion: The 2 non-IC param can be actually 2 IC with read only properties and some default values. This way stand alone child can run and can even have hyperlink to parent. The hyperlink can navigate to parent with default values (as the behaviour expected from stand alone report). So the difference maker here was to keep 2 link parameters in parent as "READ-ONLY" IC in child. Thanks,Arnav Link to comment Share on other sites More sharing options...
alvintkl Posted February 15, 2012 Share Posted February 15, 2012 Carlthe drill1 and drill2 can run individualybut i try to run drill1 and link the drill2 it can not workwhat is the problemi using ireport 3.7.4 only Link to comment Share on other sites More sharing options...
alvintkl Posted February 15, 2012 Share Posted February 15, 2012 Hi Carli try ur drill1 and drill2 report, both can runbut when i try to run the drill1 and then link the drill2, it nothing come outwhat should i do?i'm using ireport3.7.4and i save the file under c:\testcan you help me?is this because i not have jasperserver?Code:<band height="20" splitType="Stretch"> <textField hyperlinkType="ReportExecution"> <reportElement style="BandedTable" mode="Opaque" x="0" y="0" width="53" height="20"/> <textElement/> <textFieldExpression class="java.lang.String"><![CDATA[$F{STATEABBR}]]></textFieldExpression> <hyperlinkParameter name="_report"> <hyperlinkParameterExpression><![CDATA["C:/test/drill2"]]></hyperlinkParameterExpression> </hyperlinkParameter> <hyperlinkParameter name="TargetStateAbbr"> <hyperlinkParameterExpression><![CDATA[$F{STATEABBR}]]></hyperlinkParameterExpression> </hyperlinkParameter> <hyperlinkParameter name="TargetStateName"> <hyperlinkParameterExpression><![CDATA[$F{STATENAME}]]></hyperlinkParameterExpression> </hyperlinkParameter> </textField> Link to comment Share on other sites More sharing options...
cbarlow3 Posted February 15, 2012 Share Posted February 15, 2012 Yes, I think so. Buried somewhere in one of my early explanations is the caveat that I don't think you can get a ReportExecution hyperlink to work in preview mode of iReport. Even if you could, you'd definitely have to change the _report parameter of that hyperlink, because "repo:" is a shortcut that JasperServer uses for the top of the Organization in the repository tree. That's also one of the reasons why I suggest focusing on getting them to work individually first (which of course you can test in iReport preview mode), and then at the end try adding the hyperlinks and deploying to JasperServer for testing.Is iReport preview mode your actual run-time environment for these reports, or are you ultimately deploying them to another environment?Carl Link to comment Share on other sites More sharing options...
arnav_negi Posted February 16, 2012 Share Posted February 16, 2012 Hi alvintkl,I suppose you are trying to run drill down function with 2 reports in iReport. The reports generated by you are running standalone and have no engine to identify input parameters as Input controls (IC), as it happens with the jasperserver which takes input parameters as IC and identifies target using those IC. Practically speaking, reports linking is designed to work with some engine like jasperreports server. So iReport doesn't have to create the same functionality.So jasperreports drill down is not designed to work with iReport. Use JasperReports Server instead.Arnav Link to comment Share on other sites More sharing options...
shivaseshendra Posted March 20, 2013 Share Posted March 20, 2013 hi car, i am trying to create a drill down report using hyperlink.. since i hav a small confusion, can u please send me the same attached sample drill down reports ,,which will make my work easy ! .. thanks in advance.. Link to comment Share on other sites More sharing options...
josh_4 Posted May 28, 2013 Share Posted May 28, 2013 How do I get the attached code? 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