NetTalk Central
Toggle navigation
Login
Register
×
Welcome,Guest
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Is there a p_web.(something) to get the procedure name?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is there a p_web.(something) to get the procedure name? (Read 5186 times)
Mike Grigsby
Sr. Member
Posts: 380
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!
Logged
Mike Grigsby
Credify Systems
Central Oregon, USA
Rene Simons
Hero Member
Posts: 650
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
Logged
Rene Simons
NT14.14
Rene Simons
Hero Member
Posts: 650
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.
Is something wrong with it.??
Rene
Logged
Rene Simons
NT14.14
Mike Grigsby
Sr. Member
Posts: 380
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.
Logged
Mike Grigsby
Credify Systems
Central Oregon, USA
Bruce
Global Moderator
Hero Member
Posts: 11250
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
Logged
Mike Grigsby
Sr. Member
Posts: 380
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.
Logged
Mike Grigsby
Credify Systems
Central Oregon, USA
Print
Pages: [
1
]
« previous
next »
NetTalk Central
»
NetTalk Web Server
»
Web Server - Ask For Help
»
Is there a p_web.(something) to get the procedure name?