Jump to content
Changes to the Jaspersoft community edition download ×

Parameters in a scriptlet file


2005 IR Help

Recommended Posts

By: armov - armov

Parameters in a scriptlet file

2005-07-26 08:20

Hi, I'm trying to make a pie 3D chart using the jfreechart library and iReport and I'm using a scriptlet file.

What I need to know is that if threre's any way to call a parameter from the report and use its value in the scriptlet file.

I'd appreciate any comment or help.

 

 

 

 

By: armov - armov

RE: Parameters in a scriptlet file

2005-07-29 12:54

Don't bother, I already found the answer.

 

 

 

 

By: djiska - djiska

RE: Parameters in a scriptlet file

2005-07-31 12:47

Hi armov

 

Can you tell how do yo do it? I' ve got the same problem

 

Thank yoy

 

 

 

 

By: armov - armov

RE: Parameters in a scriptlet file

2005-08-01 17:00

Well is quite simple. Take a look in the jfreechart sample code inside the jasperreports project. Open it with ireport, you'll notice in the project properties, that they call a scriptlet file (an abstract class defined by yourself). Inside that class you can define a String var (for example), and bring a value calling this built-int method "this.getParameterValue();", remember to make the String casting so you don't have any problems with the values. ;)

If you need the code of my scriptlet, just let me know and I will post it.

 

 

 

 

By: djiska - djiska

RE: Parameters in a scriptlet file

2005-08-02 10:16

Hi

 

I`ve tried it but I`ve not obtained it. if you'll post it I should be thankfull so much. I take a long time trying it

 

Thank you very much.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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