NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: walter.dasilva on May 21, 2012, 05:02:18 AM

Title: Impossible to edit global variable from memory form
Post by: walter.dasilva on May 21, 2012, 05:02:18 AM
Hi,

It is impossible to edit global variable from a memory form. the entry field can´t show the value. no way to do this.

thanks
Title: Re: Impossible to edit global variable from memory form
Post by: Bruce on May 21, 2012, 05:43:09 AM
Hi Walter,

yes- there is a way.

Be aware that we're talking about an Unthreaded, Global variable here - so this variable will be used for _all_ users. This means it's usually some setting for the server itself, not some setting for a specific user.

the method is as follows;

a) add the field to the form, just like any other field.

b) in the form procedure, go to the RestoreMem routine, and set the SessionValue. For example;

  p_web.SSV('someGlobal',someGlobal)

Cheers
Bruce
Title: Re: Impossible to edit global variable from memory form
Post by: walter.dasilva on May 21, 2012, 06:23:06 AM
:) it´s working...

thanks