I'll take a crack at this.
I believe this is how it works.
The worker thread you web event is running in has it's own instance of the
project, including the dataobject and the pages. Only when you are done is
the whole thing released. Because you are calling the next page within the
same web event where you set the dynamic criteria, that page and its bound
dataobjects remain set as you set them.
In your code below, the execute() statement isn't really necessary. The
page.load will execute any bound dataobjects automagically.

Corrections and clarifications are welcome.
> John Hoskins
> TDS Computing Services
> Internet Technology Team
> [EMAIL PROTECTED]
> 608.664.8263
> 608.664.8288 (fax)
> 
> ----------
> From:         [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Sent:         4/28/1999 12.52 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: [ND] Maintain Session Information
> 
> 
> I have a page pgDepemp (which I am calling from pgtrack). The dataobject
> on
>  this page
> is doDepemp. On HREF event in a field in pgtrack I am doing the following.
> 
> ------------
> CSpPage nextPage = CSpider.getPage("pgDepemp");
> CSpCriteriaSQLObject myDOB = (CSpCriteriaSQLObject)
> CSpider.getDataObject("doDepemp");
> myDOB.clearDynamicCriteria();
> myDOB.addDynamicCriterion("V_USER_LOGIN",
>                 CSpCriteriaSQLObject.EQUAL_TO_STR_OPERATOR, userID);
> myDOB.execute();
> nextPage =CSpider.getPage("pgDepemp");
> nextPage.load()
> 
> 1)HOW DOES THIS ENSURE THAT I HAVE OBTAINED Refernce TO THE DATAOBJECT
> INSTANCE OF THE PAGE instance(pgdepemp) THAT I HAVE
> REFERRED.
> 
> 2)How does netD know when I load the page it has to bring up this instance
> of the dataobject (with the dynamic
> criteria set ?
> 
> 3) Or is there another method for obtaining dataobject reference on
> pgDeptemp (LINE 2 of suggestion)
> 
> Any info on this will be appreciated
> 
> Regards
> Sindhu
> 
> 
> --------------------------------
> 
> 
> 
> _________________________________________________________________________
> 
> 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]

Reply via email to