virenptl40 Posted July 3, 2014 Posted July 3, 2014 I am using jasper server for input parameters.I have created cascading parameter. Now i want to use scriptlet in jasper server input parameter.e.g. Country,state,cityin city i want to replace city using scriplet so that this output i can use in next parameter.I have added myscriplet.jar in resource but when i am going to use it with $P{MYSCRIPTLET_SCRIPTLET}.getCityName($P{City})it is giving me error as MYSCRIPTLET_SCRIPTLET parameter is not defined.Please help i am not able to use scriplet in jasperserver.Please tell me with the steps to use scriplet.
H Mendoza Posted July 3, 2014 Posted July 3, 2014 Hi there - You might want to review the Jaspersoft documentation. There is a user document for both iReport and Studio, and you will also need the server documentation since you have to load the .jar file onto the server. I am not sure of your full requirements, but why not pull the Country and State values from the database using SQL? -- Hugo
virenptl40 Posted July 7, 2014 Author Posted July 7, 2014 Hi, I have gone through the documentation and as per your solution I am fetching country, state using sql only. I have added.jar onto server under resources section but when i am trying to use its method it is saying that scriplet1_SCRIPLET parameter not found.Please give me solution to use this scriptlet in jasper server.Thanks for the reply.
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