Aby,
Thanks for your reply. But is it safe to use instance variable in Page 2 ?
Its value may be changed by a concurrent user since all sessions use the
same instance of CSpPage.
Does anyone have any comments ?
Thanks !
Alex
> ----------
> From: Aby Mathew[SMTP:[EMAIL PROTECTED]]
> Sent: Monday, October 18, 1999 11:46 AM
> To: Teplitsky, Alexander; 'NetDynamics Developers forum'
> Subject: Re: [ND] Passing data to the next page
>
> You don't need UserSessionObjects to pass data from one page to another
> with
> the same *web event* -the entire sequence of events that happen between an
> http request and the reply.
> You can have an instance variable in Page2 and set it from page1 before
> loading page1.
>
> I mean, the following the code absolutely safe:
> ==============================
> on Page1 ->
> btSubmit_onWebEvent () {
> Page2 page2 = (Page2) CSpider.getPage("Page2");
> page2.iVector = theCSpVectorIGotFromRepeated;
> page2.load();
> }
> ==============================
> I believe instance variables are much 'cheaper' than UserSessionObjects.
>
> Aby
>
> -----Original Message-----
> From: Teplitsky, Alexander [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 15, 1999 5:52 PM
> To: 'NetDynamics Developers forum'
> Subject: [ND] Passing data to the next page
>
>
> On my ND page (pg1) I have one textbox outside of repeated (let's call it
> TB1) and one (TB2) inside the repeated (rpt1).
> I am trying to pass data from those textboxes and store it in the hidden
> fields on the next page (pg2).
>
> Page pg2 has hidden HD1 where the value of pg1.TB1 will be stored. This is
> easy to do with ND wizard.
>
> Page pg2 also has repeated (rpt1) with hidden HD2 in it. HD2 should have
> values from pg1.rpt1.HD2. ND wizard doesn't let me to
> send all values HD2[0] ... HD2[n] to the destination page. I know that I
> can
> save the values in the repeated in CSpVector and pass it using
> putUserSessionObject("vector"). However I am not sure that this would be
> the
> best solution because CSpVector may be to big for ND's session to handle.
>
> My questions are
> 1) Is there some other way to do this ?
> 2) Is there a limit on the size of data that can be passed ?
> 3) Does removeUserSessionObject() reclaim some space for use ?
>
> Thanks,
>
> Alex
> _________________________________________________________________________
>
> 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]
>
_________________________________________________________________________
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]