Munchausen Posted February 5, 2008 Share Posted February 5, 2008 I have two tables consumos, con_dep.In the table con_dep I have one field name tag_con that it is string.With this field I wan`t to select 3 fields double in the table consumos, how name is "tag_con", "tag_con" + L and "tag_con" + T.How I can define the variable expression?:$F{$F{tag_con}}$F{$F{tag_con} + L}$F{$F{tag_con} + T} I need how defined the expression of the variable with it is a field that his name depends of another field Link to comment Share on other sites More sharing options...
vk01 Posted February 5, 2008 Share Posted February 5, 2008 Sounds like a case of subreport to me. You can pass as hyperlink or create the subreport within main report. You can read the iReport documentation. Link to comment Share on other sites More sharing options...
Munchausen Posted February 7, 2008 Author Share Posted February 7, 2008 How can I pass a Hiperlink?Is it a simple solution?I need to see de value of fields in a unique report and the same line.Post edited by: Munchausen, at: 2008/02/07 06:40 Link to comment Share on other sites More sharing options...
vk01 Posted February 7, 2008 Share Posted February 7, 2008 In your main report, select the field you would like to create a hyperlink on - select properties, hyperlink tab- properties - Hyperlink target - Self(opens in same window), hyperlink type - Reference basic syntax -- "path to the other report" + "?reportName=your_other_report&KEY=" + $F{KEY}--you can pass as many fields as you want to other report. hope this helps. Link to comment Share on other sites More sharing options...
Munchausen Posted February 8, 2008 Author Share Posted February 8, 2008 Thank you a lot for your reply what I need to see all the data in the same report and line.Is it possible to do?Post edited by: Munchausen, at: 2008/02/08 06:38 Link to comment Share on other sites More sharing options...
vk01 Posted February 8, 2008 Share Posted February 8, 2008 I have attached examples of using the Master Report and a subreport. Download these samples from the website itself. I had to search quite a bit. It is has a whole bunch of samples. [file name=ProductReport.jrxml size=9463]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/ProductReport.jrxml[/file] Link to comment Share on other sites More sharing options...
vk01 Posted February 8, 2008 Share Posted February 8, 2008 Master file - please read this first before subreport. Link to comment Share on other sites More sharing options...
vk01 Posted February 8, 2008 Share Posted February 8, 2008 Master file. Link to comment Share on other sites More sharing options...
vk01 Posted February 8, 2008 Share Posted February 8, 2008 [file name=MasterReport-d03c2908d9a8c1e58b4da04e144872c8.jrxml size=5520]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/MasterReport-d03c2908d9a8c1e58b4da04e144872c8.jrxml[/file] 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