NetTalk Central

Author Topic: The page cannot be found  (Read 7093 times)

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
The page cannot be found
« on: January 09, 2012, 04:58:40 AM »
IncidentsOptionsForm calls URL IncidentsOptionsPrint (yes the URL is spelled correctly)
NetTalk Extension has been added to Report to PDF in IncidentsOptionsPrint
IncidentsOptionsForm also has IncidentsOptionsPrint in its procedure list

but I get
http://127.0.0.1:88/IncidentsOptionsPrint
The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

So what else could I have done wrong?


Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: The page cannot be found
« Reply #1 on: January 09, 2012, 05:06:56 AM »
report procedure and webhandler in the same app?

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #2 on: January 09, 2012, 05:07:54 AM »
EVERYTHING in one app!
Thx!
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

John Fligg

  • Sr. Member
  • ****
  • Posts: 361
    • View Profile
    • Ambrit Software
    • Email
Re: The page cannot be found
« Reply #3 on: January 09, 2012, 06:41:53 AM »
Strangely I am trying to debug something similar. All other reports work but one called from a source procedure seems to fail.

Unless Bruce comes up with something here I will post separately about minne in particular but they may be related.

John

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #4 on: January 09, 2012, 07:28:25 AM »
I wonder if I can in my case, because I am calling the Report from a WebForm, assume that I must concentrate on finding the problem within the Report only and not look for it somewhere else, like in the calling WebForm?
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: The page cannot be found
« Reply #5 on: January 09, 2012, 10:13:32 PM »
first thing to figure out if the report procedure is not being called,
or the report procedure is not correctly generating the report.

So, put a p_web._trace statement in the report procedure to see if it goes there.

If it is, check and see what the filename is being set to - and see if the file is being created.

cheers
Bruce

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #6 on: January 09, 2012, 11:42:33 PM »
See attached - the battle goes on!
Thx so far!


[attachment deleted by admin]
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: The page cannot be found
« Reply #7 on: January 10, 2012, 01:36:14 AM »
ok, so have a look at the name of the file that's being created.
Does the file get created? with the right name? in the right place?

cheers
Bruce

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #8 on: January 10, 2012, 01:41:44 AM »
I don't know where/how to do that!

But I 'm trying - in Source I found

GlobalErrors.SetProcedureName('IncidentsOptionsPrint')
 INIMgr.Fetch('IncidentsOptionsPrint',ProgressWindow)  
  ! Save window information
  IF SELF.Opened
    INIMgr.Update('IncidentsOptionsPrint',ProgressWindow)  ! Save window data to non-volatile store
  END
 SELF.SetFileName('')
  SELF.SetDocumentInfo('CW Report','callw','IncidentsOptionsPrint','IncidentsOptionsPrint','','')
  SELF.SetPagesAsParentBookmark(False)
see attached

Since then:
changed it to something like that:
 p_web._trace('PrimeReportOptions = '&LOC:PDFName)
which did not help as it contains *sigh* the PDF name and not the URL.
and the answer is:
 p_web._trace(SomeVariable) but which one


[attachment deleted by admin]
« Last Edit: January 10, 2012, 10:37:54 PM by Johan van Zyl »
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: The page cannot be found
« Reply #9 on: January 11, 2012, 03:15:50 AM »
so you found the name, and the url, what are the contents of both?

cheers
Bruce

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #10 on: January 11, 2012, 03:39:27 AM »
[8756] [netTrace][thread=3] PrimeReportOptions PDFName = C:\Clarion8Projects\ProjectsJVZ\PlanAHead\CallCenter\web\reports\$$$15931.pdf

[8756] [netTrace][thread=3] PrimeReportOptions URL = \reports\$$$15931.pdf

[8756] [netTrace][thread=3] SendError = 404 The page cannot be found : The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. FileRequest=[IncidentsOptionsPrintOld]


Later 1012/01/11 15:15
Now it ain't funny any more!
Created a new Form and Report combination.
At first it work as expected - after editing the layout of the report it now also says.
The page cannot be found!
I'm not being very productive right now!

Win 7 Prof SP 1
C8 8658 Gold
NetTalk 6.13

« Last Edit: January 11, 2012, 05:15:47 AM by Johan van Zyl »
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: The page cannot be found
« Reply #11 on: January 11, 2012, 06:32:23 AM »
well on the upside you can duplicate it. I think time to make, and send me, an example.

cheers
Bruce

JHojka

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • Email
Re: The page cannot be found
« Reply #12 on: January 11, 2012, 11:17:56 AM »
Try going to WebServer -> Properties -> Actions -> Settings and then change a setting and save. Then go back in and reset the setting and save. This has resolved a slew of unusual problems I have with the nettalk server. I am still trying to find the time to make an example of this problem to send to Bruce. I have had the following problems with NetTalk that were resolved using this method.

1. Browses would no longer include the information required to call a form with the correct record.

2. A page would not load with a message that the page did not exist.

3. Memory forms would not trigger the ValidateUpdate event

4. Various compile errors usually pertaining to procedures not being defined or not properly being defined.

5. Use must be logged in would work sometimes and not work others.

Once I figured out that resetting the template under the WebServer procedure resolved a lot of issues I have started to become more productive. I spent days trying to figure out why stuff simply would not work as expected and as they worked in the examples.

Jeff Hojka
Marathon Software Co.

bruce2

  • Full Member
  • ***
  • Posts: 108
    • View Profile
    • Email
Re: The page cannot be found
« Reply #13 on: January 11, 2012, 12:34:05 PM »
Which version(build) of clarion Jeff? I've not had reports of this so it sounds a lot more like an IDE thing, and possible specific to your install.

There was an issue for some time in C7 with regard to a .. Being generated in the web server procedure, but that affected only that procedure, and was resolved some time ago (at least, I haven't seen it in a while.)

Cheers
Bruce

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Re: The page cannot be found
« Reply #14 on: January 11, 2012, 10:18:39 PM »
Try going to WebServer -> Properties -> Actions -> Settings and then change a setting and save. Then go back in and reset the setting and save. This has resolved a slew of unusual problems I have with the nettalk server. I am still trying to find the time to make an example of this problem to send to Bruce. I have had the following problems with NetTalk that were resolved using this method.

2. A page would not load with a message that the page did not exist.

Once I figured out that resetting the template under the WebServer procedure resolved a lot of issues I have started to become more productive. I spent days trying to figure out why stuff simply would not work as expected and as they worked in the examples.

Jeff Hojka
Marathon Software Co.

WebServer -> Properties -> Actions -> Settings
Could not see the Settings bit as such
But went to WebServer -> Properties -> Actions Window Behaviour and unticked  Save and Restore Window Location and compiled - no difference. Page cannot be  Found!
« Last Edit: January 11, 2012, 11:31:56 PM by Johan van Zyl »
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer