Jump to content
We've recently updated our Privacy Statement, available here ×

Select all items in multi-select input control


golfer

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

My JavaScript skill is not very good but here is what I did.  Maybe you can use it as a reference.

 

1.  Added JavaScript Check() in jasperserver_directory/scripts/view-report.js  (Please see below code section)

2.  Added new SelectAllParamtersForm.jsp in jasperserver_directory/WEB-INF/jsp directory. (Please see below code section)

3.  Go to JasperServer web interface as Administrator, click on check box next to the report.  Select "Edit" from top menu. Report Wizard should come up.  Click on Controls & Resources from left. Enter SelectAllParamtersForm.jsp in Optional JSP location.  Click Finish and Save.

 

You should see "Select all/un-Select all" option on top of multi-select report option.

Good luck!

Kassie

 

 JavaScript Code for view-report.js

Code:


SelectAllParamtersForm.jsp (same as DefaultParametersForm.jsp but added Check() in multi-select option)

Code:

 



Post Edited by Super Monkey at 01/29/09 14:26
Link to comment
Share on other sites

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...