Jump to content

Variable Persistence


RicKaufman

Recommended Posts

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

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

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

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