jimy Posted August 2, 2011 Share Posted August 2, 2011 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 More sharing options...
jimy Posted August 2, 2011 Author Share Posted August 2, 2011 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 More sharing options...
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