NetTalk Central

Author Topic: Is there a p_web.(something) to get the procedure name?  (Read 3291 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Is there a p_web.(something) to get the procedure name?
« on: August 27, 2009, 10:58:31 AM »
I wanted to use the proc name for a help variable, but I'm not seeing a session variable for it. I'm thinking something like p_web.... something. I will use this in a string on the page. Any suggestions? Thanks!
Mike Grigsby
Credify Systems
Central Oregon, USA

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Re: Is there a p_web.(something) to get the procedure name?
« Reply #1 on: August 27, 2009, 11:25:38 PM »
Hi Mike,

Follow this link:

http://www.nettalkcentral.com/index.php?option=com_remository&Itemid=27&func=fileinfo&id=4

This one generates a <procedurename>.html link in whatever form you create.
It is also easy to modify.

Regards,
Rene Simons
Rene Simons
NT14.14

Rene Simons

  • Hero Member
  • *****
  • Posts: 649
    • View Profile
Sorry
« Reply #2 on: August 28, 2009, 02:14:03 AM »
Mike,
I wasn't aware of the fact that I was referring to your solution. ;D
Is something wrong with it.??
Rene
Rene Simons
NT14.14

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Is there a p_web.(something) to get the procedure name?
« Reply #3 on: August 28, 2009, 02:38:00 AM »
Thanks Rene. That template is so old that I'm not sure it even works anymore<g>. My newer template is much more complex than that, but I'm trying a little different approach with this app. I'm starting with some popup code that actually pops up the window rather than displaying it in another tab.

In this app I've built a help system using a Help file and record, and the window ID is what pulls up the right help. So if I click on the help balloon in the proc: InventoryL, then I want to call

http://localhost:8181/help?hlp__windowid=InventoryL&View_btn=view

So when I stuff the code into each proc, I don't want to have to modify the window ID number, I want to do something like:

http://localhost:8181/help?hlp__windowid=p_web.(something)&View_btn=view

where it works across any proc. I'll just keep digging I guess.


Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11194
    • View Profile
Re: Is there a p_web.(something) to get the procedure name?
« Reply #4 on: August 28, 2009, 04:16:16 AM »
assuming your app is ABC...

GlobalErrors.GetProcedureName()

returns the current procedure name.

Cheers
Bruce

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Is there a p_web.(something) to get the procedure name?
« Reply #5 on: August 28, 2009, 08:44:25 AM »
Thank you Bruce. I was thinking I saw in prototyped in NTWS.
Mike Grigsby
Credify Systems
Central Oregon, USA