hanhai Posted December 24, 2009 Share Posted December 24, 2009 hello all:first , My English is a little weak. sorry!I have a question :in my html ,i want input two parameter :SN1,SN2 and there have a button link to jasperserver and open a window example , to view my reporthttp://127.0.0.1:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=/reports/MyExports/MysqlDemo&standAlone=true&ParentFolderUri=/reports/MyExportsI write applicationContext.xml <bean id="mybeanfactory" > </bean> here ,in the class i select and get data ,use javaBean set datasourcequestion1:here how can i finish the classquestion2:how i get the parameter SN1,SN2 in java , use the parameter i want select database Link to comment Share on other sites More sharing options...
swood Posted January 6, 2010 Share Posted January 6, 2010 You need to create a Bean data source in JasperServer, which refers to your bean, and then use that as the data source for a report unit. You will need to have input controls on your report unit for the SN1 and SN2 parameters, so that the values in your URL are passed to the report when it is run on the server. ShermanJaspersoft Link to comment Share on other sites More sharing options...
hanhai Posted January 7, 2010 Author Share Posted January 7, 2010 Now it's work good!in Spring have a bean , implements ReportDataSourceService , jrxml have a parameter PP, jasperserver have a input conrtol PP, so , when it run ,i get the MAP form setReportParameterValues(MAP parameter)Thank you very much ! Link to comment Share on other sites More sharing options...
sdemelis Posted October 24, 2011 Share Posted October 24, 2011 Hi proaugust,could you explain me how did you read the input controls from the javabean datasource? thanks Link to comment Share on other sites More sharing options...
sdemelis Posted October 25, 2011 Share Posted October 25, 2011 Nvm....I found the answer in another post. 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