Jump to content
Changes to the Jaspersoft community edition download ×

How to use scriplet in Jasper server input parameter.


virenptl40

Recommended Posts

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,city

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

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 

Link to comment
Share on other sites

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.

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