Jump to content

how run jasper on jasperserver


hanhai

Recommended Posts

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 report

http://127.0.0.1:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=/reports/MyExports/MysqlDemo&standAlone=true&ParentFolderUri=/reports/MyExports

I write  applicationContext.xml  

<bean id="mybeanfactory" >

  </bean>

 

 

here ,in the class  i select and get data  ,use javaBean set datasource

question1:here how can i finish the class
question2:how i  get the parameter SN1,SN2 in java ,  use  the parameter i want  select  database
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

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.

 

Sherman

Jaspersoft

Link to comment
Share on other sites

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

  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...