NetTalk Central

Author Topic: NetWebBrowse with Menu Extension  (Read 3297 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
NetWebBrowse with Menu Extension
« on: April 15, 2012, 12:36:58 PM »
Hi Guys,

How do I get a menu-selection from the menu-extension to set a local/session value?
I don't want to open another URL or procedure, but set a value only.

I have a NetWebBrowse with some conditional children on the same procedure as the menu-extension.
I'd like to show the child procedure (browse) related to the menu item the user selected.

Any advice will be appreciated.

Thanks, Rupert

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NetWebBrowse with Menu Extension
« Reply #1 on: April 15, 2012, 05:26:58 PM »
You could try adding the parameters to the URL of you parent browse which would trigger a refresh and show the right child browse.

rupertvz

  • Sr. Member
  • ****
  • Posts: 326
    • View Profile
    • Email
Re: NetWebBrowse with Menu Extension
« Reply #2 on: April 16, 2012, 12:06:50 AM »
Thanks Kevin,

What should the parameters look like, as an example?
I am using for instance LOC:MnuVal for the menu value as the condition for the child-browse.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NetWebBrowse with Menu Extension
« Reply #3 on: April 16, 2012, 03:29:51 PM »
'myparentbrowseurl?childbrowse=' & p_web.gsv(LOC:MnuVal)    !you would need to pass LOC:MnuVal to a SSV

use & if you have more than 1 parameter to pass

In the parent browse you would use p_web.getvalue('childbrowse') to get the value of the parameter. This needs to be done at the start of the code as the value is short lived. So it's a good idea to pass it to a SSV at this point.

Hope that makes sense.

Kev