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

How do you access variable values through API


2004 IR Help

Recommended Posts

By: fiona - nlasystems

How do you access variable values through API

2005-06-01 07:00

After the fill process, can you see the values of each variable inside a Jasper report?

I did see a getValueClass() method but not a getValue() or something similar.

 

Will appreciate any help.

 

 

 

 

By: fiona - nlasystems

RE: How do you access variable values through

2005-06-06 06:00

I wish I can come to one of these conclusions

 

1) What I want to do is impossible

2) It is possible but nobody knows how

 

 

 

 

By: Teodor Danciu - teodord

RE: How do you access variable values through

2005-06-06 06:32

 

Hi,

 

I'm not sure I understand what you need to do.

Are you talking about acessing variables from the Scriptlet

class?

 

Thank you,

Teodor

 

 

 

 

 

By: fiona - nlasystems

RE: How do you access variable values through

2005-06-06 06:54

Hello Teodor

 

No, after I fill a report object, I want to access the value of a variable.

I get a list of these variables by:

 

String[] allVariables = jasperReport.getVariables();

 

I hope I have expained myself better!

 

Thanks

 

 

 

 

By: fiona - nlasystems

RE: How do you access variable values through

2005-06-06 06:54

Hello Teodor

 

No, after I fill a report object, I want to access the value of a variable.

I get a list of these variables by:

 

String[] allVariables = jasperReport.getVariables();

 

I hope I have explained myself better!

 

Thanks

 

 

 

 

By: Teodor Danciu - teodord

RE: How do you access variable values through

2005-06-06 07:48

 

Hi,

 

The only hook we have into the filling process is through

scriptlets.

I think you could use the afterDetailEval() method and

store the value of your variable into a Map parameter

that you would pass when you launch the filling process.

 

I hope this helps.

Teodor

 

 

 

 

 

By: fiona - nlasystems

RE: How do you access variable values through

2005-06-06 09:36

I think I did not explain myself well. Sorry.

 

I have a Jasper report that among other things calculates a balance. This balance is a jasper report variable $V{balance} . After I fill the jasper report, I want to get the final value of $V{balance} from the jasper report object.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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