These two have very similar effect if mytextbox is an integral part of the
page, created in Studio an appearing in .spg
If mytextbox is not part of the ND Page, but added externally (for example,
by hard-coding <INPUT... > in the .htm file only getWebVar works.
Another situation I can think of where you need getWebVar is: within
CSpRepeated, the elementName changes to elementName(1) etc.
Theoretically speaking, getWebVar() looks at the nvps that were submitted
last. getDisplayFieldValue() looks at the Page object. Obviously, one of the
first things that ND does on a web event would be to take the nvps, match
them against known elements and put the values into the Page Object.
Aby
> -----Original Message-----
> From: Teplitsky, Alexander [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 06, 1999 2:25 PM
> To: 'NetDynamics Developers forum'
> Subject: [ND] When to use getWebVar() ?
>
> I am just wondering what is the difference between these two calls
>
> CSpValue val = getDisplayFieldValue("mytextbox");
>
> and
>
> CSpValue val = CSpider.getWebVar("mytextbox");
> _________________________________________________________________________
>
> 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]