NetTalk Central

Author Topic: Restricting user access to a net web report that is in use.  (Read 3639 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
    • Email
Restricting user access to a net web report that is in use.
« on: December 23, 2016, 06:44:49 PM »
Hi
I have a NT web server app that prints reports by writing data to a temporary TPS file prior to printing,.
This file is cleared at the start of each report run.
It is feasible that different users will want to access this report simultaneously, selecting different variables to print.
How can I restrict  user access to this report  while it is "working" ?

many thanks
Richard
C10 NT 8.71

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: Restricting user access to a net web report that is in use.
« Reply #1 on: December 26, 2016, 06:37:49 AM »
Hi Richard. As an alternate suggestion, why don't you add the sessionid to the table and restrict the report to that session variable? Then you remove the records for that sessionid in the file after printing. That way all your users can print the report at the same time without affecting the others.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Restricting user access to a net web report that is in use.
« Reply #2 on: December 30, 2016, 05:19:38 AM »
hi Richard,

yeah, I second what Terry said.

Cheers
Bruce