RicKaufman Posted March 15, 2012 Share Posted March 15, 2012 I have a variable that I was setting through a scriptlet, and I was using the method afterReportInit(). This worked fine for the first page, but when it printed on the second page, the value was null. I changed to using the method afterPageInit(), and this worked fine, but I'm confused as to why the variable value would have been re-set to null before I made this change. Can anyone explain this to me?Thanks,Rick Link to comment Share on other sites More sharing options...
lknueve Posted March 16, 2012 Share Posted March 16, 2012 in Ultimate book this is what they have for the 2: After Report Init -> This is called after all variables are initialized.After Page Init -> This is called when a new page is created and after all variables having reset type Page are initialized. Link to comment Share on other sites More sharing options...
RicKaufman Posted March 17, 2012 Author Share Posted March 17, 2012 Reset type for this variable is report, so I still don't understand why it was re-setting to null on the second page. 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