NetTalk Central

Author Topic: Pass Variables from Menus  (Read 2720 times)

MikeR

  • Sr. Member
  • ****
  • Posts: 265
    • View Profile
    • Email
Pass Variables from Menus
« on: September 06, 2011, 01:24:56 AM »
I want to call a procedure as popup from different menu selections, that’s easy enough, but how do I pass diffent information or values to it ?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Pass Variables from Menus
« Reply #1 on: September 06, 2011, 05:45:23 AM »
Hi Mike,

There's a "parameters" option as one of the options for the menu item.
Just under the "Procedure" option.

These are formatted as
'something=bob&someone=fred&whatever=true'

then in the receiving procedure, use p_web.GetValue to read them - as in
p_web.GetValue('whatever')

or more usefully, move them to the session queue using StoreValue - as in
p_web.StoreValue('whatever')


Cheers
Bruce