NetTalk Central

Author Topic: how to use GSV in abc procedure  (Read 2621 times)

sabra

  • Newbie
  • *
  • Posts: 28
    • View Profile
    • Email
how to use GSV in abc procedure
« 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

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: how to use GSV in abc procedure
« Reply #1 on: November 01, 2010, 03:52:35 PM »
Pass p_web as a parameter (see browse template) or just pass the parameters you need.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: how to use GSV in abc procedure
« Reply #2 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