Jump to content

Variables - How to declare such that evaluation occurs after all records have been processed


jimy

Recommended Posts

Hi, simple question here, I hope:

How do you declare a variable such that the evaluation of that variable does not occur until all records from the DataSource have been processed?

 

Thanks!



Post Edited by jimy at 08/02/2011 20:36
Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

OK, I'll try to answer my own question so that it might help others.

1) Define a Scriptlet class and @Override the afterDetailEval() method.
2) Define a Variable(?) and set it's evaluation time to report.
3) Place the variable in the Page Header band.

OK, honestly I have no idea if it matters what band it's in. I tried the Title, Summary, and Page Header. Only page header worked but maybe I screwed something up.

Also I placed a question mark(?) after the word variable in step #2 because I actually used an image with an evaluation time of Report. I think a variable would accomplish the same thing.

Finally, step #1 has nothing to do with when the variable gets evaluated.  But you can use that afterDetailEval() method to set your variable contents.



Post Edited by jimy at 08/02/2011 21:31
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...