NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Koen Tjoa on November 25, 2011, 08:55:42 AM

Title: Setting default value for an entry box (string control)
Post by: Koen Tjoa on November 25, 2011, 08:55:42 AM
Hi All,

I have button in which I do some processing which results in assigning a value to a variable MyField.
After that I do call to the MyField routine and then unhide that particular field, but that doesn’t fill the field with the value I expected. So now I execute p_web.SetSessionValue('MyField',MyField) first and then call the MyField routine, which works.

But is using the SessionDataQueue the right way to assign a default value to a entry on a form? Or should I use the ValueQueue in some way?

Cheers,
Koen
Title: Re: Setting default value for an entry box (string control)
Post by: Bruce on November 25, 2011, 10:07:52 PM
>> assigning a value to a variable MyField.

At this point you should ALSO assign it to the SESSIONVALUE of MyField

>> Or should I use the ValueQueue in some way?

no

cheers
Bruce
Title: Re: Setting default value for an entry box (string control)
Post by: Koen Tjoa on November 26, 2011, 01:12:06 AM
Hi Bruce,

Thanks again, "ALSO" it will be. Still feeling I am a junior programmer again while learning NetTalk  8).

Cheers,
Koen