Sindhu,

You seem to have misunderstood the relation between DataObjects and Pages.
They are independant objects. By binding a Page to a DataObject, you are
only connecting these objects so that when the Page object is doing its job
-creation of an Html Form -  it takes help from a DataObject.

DataObjects are public properties like Pages. They do some work for you and
give you the result. Another web event later on should not expect these
objects to keep anything that was left in the previous web event.

DynamicCriteria seems to be the only exception. When you do a
dataObject.addDynamicCriterion, the criteria are not stored inside the
dataObject, instead they are stored as UserSessionObjects, so they stay.

If this doesn't address your concern, pls explain what you are concerned
about.


Regards,

Aby



> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, April 28, 1999 1:53 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