NetTalk Central

Author Topic: Dynamic file path  (Read 3327 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Dynamic file path
« on: August 12, 2009, 11:52:39 PM »
Hi,
As described earlier in this forum, changing the filepath must be done in the webHandler | Processed link | before parent embed.
When I compile and run, an error appears telling me that the gsv method, which I use to retrieve certain data from the session, is not valid.
My question is: Can I use p_web methods at all in the webHandler?

Thank you,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Dynamic file path
« Reply #1 on: August 13, 2009, 10:16:28 PM »
yes, you can use all the "p_web" methods there.
But bear in mind that "p_web" is really just a parameter being passed around. You'll notice it's passed to the browses, forms and so on.

p_Web _is_ the WebHandler object.

So usually in the WebHandler procedure you should use "self" instead of p_web.

Cheers
Bruce

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: Dynamic file path
« Reply #2 on: August 13, 2009, 11:11:26 PM »
Thank you.
Rene Simons
NT14.14