Jump to content

Client side validations


kadimulam

Recommended Posts

Hi,

 

Can you please tell me how to do client side validations using JasperServer and iReport?

I have a drop down as a user control for 'City' field. I have a default option called 'Select a value'. So whenever user selects 'Select a value' and clicks on Sumbit, i should not allow user to view the report and should throw an error saying 'Please select a value for City'.

I am using JasperServer 3.0 and iReport 3.0.

 

Thanks,

Kiran

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

You need a custom parameter JSP. This can be set on the report unit - see the Resources List screen in the Report Unit maintenance screens. Have a look at WEB-INF/jsp/DefaultParametersForm.jsp as a guide to developing a custom parameter form. In your case, you would need to add some Javascript to catch the unentered value.

 

Sherman

Jaspersoft

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