NetTalk Central

Author Topic: Multiple data sets  (Read 3627 times)

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Multiple data sets
« on: November 28, 2011, 03:07:18 AM »
Just been watching the original video and Bruce mentioned you can set the pathname in the Web Handler embed point.

2 questions:

1. Which embed point would you use
2. Are globals OK to use. Presumably so if each user has their own thread.

In my dct you have to provide a pathname so I was going to define the filename/oath as GLO:Filename

Then I would do this:

1. Use Seciwn to get the User login ID
2. Set GLO:Filename to the LoginID
3. Set the path to Data\GLO:Filename in the enbed point

That way when logging in they only access their own data.

Is this feasible and which embed point to use please?

John

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11275
    • View Profile
Re: Multiple data sets
« Reply #1 on: November 28, 2011, 06:18:48 AM »
>> 1. Which embed point would you use

WebHandler procedure, ProcessLink method, before the parent call.

>> 2. Are globals OK to use.

Yes, as long as the variable is THREADed. (ie has the THREAD attribute on it).

cheers
Bruce