You can run IQJam in your company on your Domino server. Learn how...
Username: Password:
Reset Password | Register
 
Home | Leader Board | Tags | Help
Back to view...
XPage Lifecycle - where is it best place to set applicationScope data? 
I have an XPage with a document DataSource on. I need to compute the DataSource doc unid using information from another database. I wanted to get the the server and filepath info of that other database from the applicationScope, so guessed that I could set the applicationScope variables in the "beforePageLoad" event, but that executes after the DataSource unid calc as follows :-
 
using the classic XPage debugging tool print( "I'm here" ) ...
07/02/2010 14:25:45   HTTP JVM: DataSource
07/02/2010 14:25:45   HTTP JVM: DataSource
07/02/2010 14:25:45   HTTP JVM: beforePageLoad
07/02/2010 14:25:45   HTTP JVM: DataSource
07/02/2010 14:25:45   HTTP JVM: DataSource
 
Does the DataSource unid calc code always run before any controls on the XPage or is there no guarantee?
 
Why does it run 4 times, twice before and after the beforePageLoad event?
Thanks in anticipation. Jerry.
Domino Development / XPages
Jerry Shelley - about 1 month ago |  |  | Viewed 36 times

There are 0 Answers