NetTalk Central

Author Topic: Error - GEN: Unknown Variable '%WebAppsUseSecwin'  (Read 3266 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« on: July 18, 2023, 08:18:38 AM »
Hi,

Previously I created my PDF with a standard report with PDFtools extension,
then would use the name of the created file, and a NT procedure to Server the file.

Trying to clean things up and improve my method, I am trying to use the prescribed method and integrate p_web on the Report procedure,
however, I get an error when I add the required "NetTalk Extension to Report" as per the manual.

From the NT manual, when I add this extension I get an error.
"To this local extension (ie the PDF local extension on the report) you will need to add one more extension, the NetTalk Extension to Report extension. This will add the code necessary to make it run in web mode."


I don't use Secwin, so perhaps this template is looking for it?

thanks

Johan


 

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« Reply #1 on: July 18, 2023, 08:33:05 AM »


Sorry, forgot to add,
the app compiles fine.
But my PDF report not working, so not sure if it's because of this.
Seems as if the procedure is not executing correctly , the trace commands in the procedure Init, is not executing.

regards

Johan



Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« Reply #2 on: July 18, 2023, 09:14:27 PM »
Hi Johan,

I'm glad you like to hide the interesting parts... like the fact that the report is perhaps not in the same app as the web server procedure?
you know, the little details that make it easier to give a straight answer...

Cheers
Bruce

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« Reply #3 on: July 19, 2023, 12:15:48 AM »
Hi Bruce

thanks,
after adding the Report to one of my common dll's, did not realize the app was not in this list.



Johan

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« Reply #4 on: July 19, 2023, 11:11:29 PM »
so you're saying it's ok now? not ok now?

JohanR

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • Email
Re: Error - GEN: Unknown Variable '%WebAppsUseSecwin'
« Reply #5 on: July 20, 2023, 12:12:42 AM »
Hi Bruce,

Yes, it's OK now,

Your reply made me realise what the problem could be.
"I'm glad you like to hide the interesting parts... like the fact that the report is perhaps not in the same app as the web server procedure?"

it was a report in one of my common dll's shared with desktop system.
after I added the p_web parameter, to use it correctly from NTWS, caused the problem.

This was the first procedure in this DLL to be NTWS enabled with the added p_web parameter.
So it was not in that list of NTWS apps.
And adding the required NTWS pdf extension created the template errors.

The error description about secwin through me off the scent of the reason for problem :)


thanks

Johan