Curt Springer <[EMAIL PROTECTED]> wrote:
>I'm not sure exactly what you mean when you talk about "the user session
>object".
>
>Are you using some ND-supplied object (which I've stayed away from), or
>have you created an object of your own that holds several values, and which
>you retrieve from the session via get[Any]UserSessionObject, or is it that
>each value is stored in the session with a different key?
>
>You're right, you can't set up the display values in the page-level
>onBeforeDisplay because its initilialization will tend to clear out
>whatever you did. Another option is to use the page-level
>onBeforeRowDisplay event, which occurs as part of page-level display
>processing.
>
>But I think you might be assuming that you are getting stuff out of the PE,
>when such is not the case. For the purpose of understanding the flow of
>processing of ND, it is useful to think that every call to
>'getUserSessionObject' calls for a fetch from the PE. That doesn't
>actually happen, in most cases. At the beginning of a web event, there is
>a single fetch of all the session variables from the PE, which are then
>stored in a hashtable to which the web event has a reference. Calls to
>'getUserSessionObject' actually cause lookups to the local hash table, not
>across the CORBA chasm to the PE. At the end of the web event, the local
>values, if changed, are updated back to the PE.
>
>As of ND 4 you can set some options so that, for example, certain session
>values are not fetched from the PE until you ask for them.
>
>In javadoc see CSpider.setSession(), CSpSession.setSessionCachingControl(),
>CSpSessionCachingControl
>
>-- Curt Springer, Team ND
>
>
>At 03:02 PM 12/28/99 -0800, Ferdinand Say wrote:
>
>>Every field in my page gets its value from the user session object.
>>I plan to retrieve the values from the user session object
>>and display it during the page's this_onBeforeDisplayEvent().
>>But I dont think this would work. I need to display the value on each field's
>>on_BeforeDisplayEvent(). But retrieving the values from the same user
>>session object
>>on every field's onBeforeDisplayEvent() seemed to be very expensive - it
>>slows down
>>processing since it's getting the value from the PE.
>>
>>Now my question is: Is it safe to retrieve the values from the user
>>session object on the
>>page's onBeforeDisplayEvent() and temporarily store them in an instance
>>variable and
>>use the instance variable to display each field on the field's
>>onBeforeDisplayEvent().
>>
>>I would appreciate your answer.
>>
>>Thanks.
>>
>>Ferdie Say
>>
>>
>>
>>_________________________________________________________________________
>>
>>For help in using, subscribing, and unsubscribing to the discussion
>>forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>>
>>For dire need help, email: [EMAIL PROTECTED]
>
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]