neetikamittal Posted August 4, 2006 Share Posted August 4, 2006 Hi Frends,my earlier query is http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=215&func=view&id=518&catid=9 so anybody can help me in passing the runtime fields values to subreport . Plz help me. I tried to give something like "http://localhost:8080/myapp/subreport?emp_id=$F{emp_id}" This emp_id is added as parameter in both subreport amd masterreport. But In my servlet I am getting value of emp_id as ((java.lang.Integer)field_emp_id.getValue())I was expecting to get yje runtime value of emp_id of masterreport. in 'hyperlinked ref. expression ' field .but if i am giving "http://localhost:8080/myapp/subreport?emp_id=2"Its working but this is hardcoding and its generating subreport related to emp_id =2 only.I want to generate subreports of employee on whose emp_id I will click . Plz help .servlet code is given for reference [file name=servlet.txt size=2669]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/servlet.txt[/file] Link to comment Share on other sites More sharing options...
lucianc Posted August 4, 2006 Share Posted August 4, 2006 Your hyperlink expression should beCode:"http://localhost:8080/myapp/subreport?emp_id=" + $F{emp_id} HTH,Lucian 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