NetTalk Central

Author Topic: Setting default value for an entry box (string control)  (Read 3382 times)

Koen Tjoa

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Setting default value for an entry box (string control)
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11275
    • View Profile
Re: Setting default value for an entry box (string control)
« Reply #1 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

Koen Tjoa

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
    • Email
Re: Setting default value for an entry box (string control)
« Reply #2 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