NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: sabra on November 01, 2010, 02:04:22 PM

Title: how to use GSV in abc procedure
Post by: sabra on November 01, 2010, 02:04:22 PM
In a NT browse (display) i call a normal abc source procedure  CalcPrice(amount) . In this procedure i need a session value but p_web.gsv is not referenced in a normal source proc.
The proc is in the same (nettalk 5) app
How to do this?
Regards,

Walter
The Netherlands
Title: Re: how to use GSV in abc procedure
Post by: kevin plummer on November 01, 2010, 03:52:35 PM
Pass p_web as a parameter (see browse template) or just pass the parameters you need.
Title: Re: how to use GSV in abc procedure
Post by: Bruce on November 03, 2010, 05:04:18 AM
yes, what Kevin says.

the prototype becomes
(Long Amount, NetWebServerWorker p_web)
ditto the parameters list - and you call it with
CalcPrice(Amount,p_web)

you can make the parameter optional if you like - and if
it's omitted don't do the GSV call.

cheers
Bruce