NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: terryd on January 16, 2013, 09:04:40 PM

Title: Report error Unknown procedure label
Post by: terryd on January 16, 2013, 09:04:40 PM
Windows7 Ultimate Clarion8.0.9661 Nettalk702
I have a problem with compiling an application.
The compile error is reported as line 2052 Unknown procedure label.
Clicking on the error shows 1.jpg which I understand to mean that there is a problem with the procedure prototype or parameter.
2.jpg is the prototype and 3.jpg is the parameter on the report.
I call the report from a button on the browse as I have always done with previous reports (4.jpg)
I also changed the session timeout on the netSimple Object in the webserver to force a full regenerate and recompile.
I have also tried renaming the report.

I have other reports in this app which work with no problem so I'm stumped.
Any suggestions as to what the problem could be?




[attachment deleted by admin]
Title: Re: Report error Unknown procedure label
Post by: terryd on January 16, 2013, 09:24:28 PM
Linked it to a menu but still got the same error (just a different line number)
Title: Re: Report error Unknown procedure label
Post by: peterH on January 17, 2013, 12:18:14 AM
Don't know if it matters but I always declare my reports as global.

Peter
Title: Re: Report error Unknown procedure label
Post by: Bruce on January 17, 2013, 07:18:34 AM
>> The compile error is reported as line 2052 Unknown procedure label.
>> Clicking on the error shows 1.jpg which I understand to mean that there is a problem with the procedure prototype or parameter.

No, it means that the report procedure is not set on the "calls" list from the WebHandler, is not declared globally, and is not in the same module as the web bandler.

So the simplest solution is either add the reports to the "calls" of the WebHandler, or easier, just mark them as "declare globally".

cheers
Bruce
Title: Re: Report error Unknown procedure label
Post by: terryd on January 17, 2013, 10:04:07 PM
Thanks Peterh/Bruce.
I was just copying the settings of a report in the same app which didn't have declare globally set, or set as a call from the webhandler, but which did work.
Checking the declare globally did work so I will use that in future.