NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Keith

Pages: 1 [2] 3 4 ... 7
16
Web Server - Ask For Help / Last page of a Browse doesn't display
« on: February 19, 2015, 10:32:40 PM »
HI

I have a Browse which for all money looks utterly standard.  There are 10 records per page and the standard 'First', 'Previous', 'Last' etc buttons.

The problem is that the last page wont display.  There are 40 records in the table and after 3 'Nexts' the browse greys out and freezes.  It can be reactivated with 'First' but the last page wont display.

Other similar browses do not have this problem.  It is not browser dependent.

Any tips?

Thanks

Keith

17
Web Server - Ask For Help / Cannot access an image
« on: February 18, 2015, 06:29:15 PM »
HI

I have a Form on which I have 6 places for images.  The user can 'file upload' all six and they are immediately displayed via an 'Image' field type.  On my development machine all of this works perfectly - the correct path name with the unique image name is moved to the file name field in the table and the image is copied to the web\uploads folder where it is successfully retrieved through the image field and displayed.

However when I moved this app to my test web sever although the name is generated and populated correctly and the file is copied to the web\uploads folder  the 'Image' field cannot retrieve it for display.

The web folder full path is different on the web server from the dev machine but this is handled by the logic and looks to be 100%.  If I log on to the web server and 'read' the uploaded image there is no problem.  My NT app can write to the  folder.

On the web server the folder is networked and shared.

Has anyone seen this before?

Thanks

Keith

18
Web Server - Ask For Help / ISL Error :0
« on: February 14, 2015, 09:24:44 PM »
Hi

I have got this ISL Error: 0 after making the simplest of changes to my code.

I had a compiled program (no errors).  I added one field to a Tab on a form and get this error.  Take the field out and the error goes away.

Googling the error indicates that people think it has something to do with an improperly coded Return statement but that isn't certain.  Of course, I haven't added any 'Return'.

I had a problem with this Form a while ago because it has about  200 'fields' including Display and Buttons and it generated the 'Too many SEGDEFs' error but that was fixed after setting procedures per module to 1

This sort of error gives you goose bumps because you don't know what to do and wonder if it can be fixed at all.

Thanks for soothing words  :)

Keith

19
Web Server - Ask For Help / Code executed 3 times
« on: February 08, 2015, 12:37:37 AM »
Hi

I am uploading photo files and changing the name to render them unique.  I noticed (by inserting trace) that  the code which saves the path and file name (SaveFile::FND:Photo1  Routine) executes three time for each upload.  It looks as if the name is the same each time i.e I change it but on the second entry it is back to the original (the \web\uploads\<fname>.jpg) so there isn't any harm done.

But .. . is this anything to worry about and why is it happening  (maybe I've done something wrong)?

Cheers

Keith

20
Web Server - Ask For Help / Taming the cursor
« on: January 16, 2015, 01:54:07 PM »
Hi

How can I define the next field to be accepted on a Form?

I have a Login Form and if a Code field is invalid I want to force the cursor back into the Code field after displaying an error message.

Specifically, I have three fields - Code, User and Password.  On entering Code (and say Tab) my Server Code detects and error and I post the error message but the cursor sits in the User field.  I would like to force it back to the Code field.

A secondary problem is that I would like to blank the fields in error but when I do this in the Server Code and 'Reset' the changed fields via the template the cursor goes into the aether (vanishes) and you can't type until re-establishing a field via a mouse click.

Is there anything I can do to get around this behaviour?

Thanks

Keith

21
Web Server - Ask For Help / Page Header 'Look'
« on: January 08, 2015, 07:08:08 PM »
Hi

I have just used the Wizard to generate a new skeleton application which I will build up.  When I ran the first iteration I didn't like the look of the Page Header because the HTML was jammed up against the Menu.  I had got used to seeing a nice gap between the two.

I assumed it must be something in the Menu specification or the HTML but after a microscopic examination of the two I could see nothing materially different from a Header that looks good.

I have attached GoodHeader and Badheader pictures (GoodHeader has the gap).  Both result from 'Task Panel' menus and the settings look the same.  Here is the HTML for both:

GoodHeader.


<!-- Net:PageHeaderTag -->
<br />
<b>Welcome to PetMotel.  Click on 'Customers' to

start.</b><br /><br />
PetMotel offers free usage for one month after you get a

login id.  You can also try it out without logging on in

our Playpen area.<br /><br />

<img src="pet1.jpg">
<br /><br />

If you feel that PetMotel is useful then you can

purchase a licence fee for a nominated periods at a very

modest rate. <br /><br />
For Playpen mode no login is required but your results

only last for the duration of your session. <br /><br />
Read the documentation to find out how to get the most

out of PetMotel.<br /><br />
<br /><br />
<br /><br /><br /><br /><13,10><!-- Net:PageFooterTag

-->


BadHeader.

<!-- Net:PageHeaderTag -->
<br />
<b>Welcome to the TimePeace Administration

module.</b><br /><br />
This is where you can escape the tyrannies of the Nark

Clock.  Here is where Time becomes your friend!<br /><br

/>

<img src="NarkClock.png">
<br /><br />

You will soon feel better.  You will breathe easier.<br

/><br />
Read the documentation to find out how to get the most

out of TP Admin.<br /><br />
<br /><br />
<br /><br /><br /><br /><13,10><!-- Net:PageFooterTag

-->

I cannot see any differences.

I have run both programs using IE and FireFox with identical results.

This is obviously not a show stopper but I would appreciate any tips as to what might be the problem.

Keith

[attachment deleted by admin]

22
Web Server - Ask For Help / Congratulations NetTalk
« on: January 06, 2015, 11:50:20 PM »
I might have penned yet another request for help but didn't (of course) because the first thing you do before even thinking about approaching this august Forum with a query is that you read and re-read all of the documentation that you can lay hands on.  ::)

Well my problem was simple - I needed to have a Browse sorted on Date AND Time and in typical fashion I started to imagine what I might have to do, might have to code, might have to test in order to get the result.

But then a little voice whispered that maybe, just maybe there might be a template setting - maybe!

A brief look at 'The Book' was all that was required to confirm the existence of a 'Custom Sort Order, a 'Default Sort Order' and a 'Default to Descending (order)' which when appropriately ticked and completed generated the most versatile and accurate set of sorting options that it would be possible to imagine.  No doing, no coding and no testing.

This is what makes programming, and especially programming with NetTalk - fun.  Thanks NetTalk and have a great 2015.

Keith


23
Web Server - Ask For Help / Microsoft Security Essentials
« on: December 31, 2014, 12:41:04 AM »
Hi

Has anyone heard the story that Microsoft Security Essentials (or Defender) corrupts TPS files.  I heard this from a friend who is coding Windows apps in Clarion and he said that there was a lot of talk about It on comp.lang.clarion and suggestions about changing to SQL.

This sounds incredible.  Defender runs on my development machine and I have never had a TPS corruption.

Is there any truth to this and if so, why would it be?

Keith

24
Web Server - Ask For Help / Conditional filter in Browse
« on: December 26, 2014, 06:53:19 PM »
Hi

I wanted to have two menu items which executed the same browse but when Item1 was chosen the filter was different than when Item2 was chosen.

Now in this browse I already have a filter and to avoid it getting too complicated to code in the template (!) I have put the code into the ValidateRecord embed point (If <conditions> then cycle.)  So I just wanted to set a session variable when Item1 was pushed and clear it when Item2 was pushed so that I could code something like this:

If p_web.gsv('external',1)  !got here from Item1
   if <set of conditions> then cycle.
END

I looked in vain for a place to set the variable in the PageHeaderTag - p_web.ssv('external',1) when Item 1 was chosen and to clear it after Item 2 was chosen ( p_web.ssv('external',0) but both pieces of code were always executed so I am obviously looking in the wrong place.

Where could I put this SSV to unambiguously set and clear the variable?

Thanks

Keith

25
Web Server - Ask For Help / PDF Tools for Reports
« on: December 20, 2014, 04:39:59 PM »
Hi

I have just installed the demo version of PDF Tools (Tracker Software)  - looking to purchase. 

Install etc was ok and I generated a test report (Report1  ;D) with the Global Extension and the two local extensions per the NetTalk Book.  But ... I get a compile error viz:

'Unknown procedure label' and the line is -
Report1(self) ! Report procedure should have prototype of (<NetWebServerWorker p_web>)

Am using C9 and the prototype and Parameters seem to be correctly set.

What haven't I done?

Thanks

Keith


26
Web Server - Ask For Help / Read-only Lookup field - bug?
« on: December 07, 2014, 12:35:15 AM »
Hi

I have a Lookup field which returns a Name and it can remain blank i.e. Lookup wasn't invoked or wasn't successful but I didn't want users trying to enter a value.  So I made it Read-only but the '?' Lookup button wasn't generated.

Is this a bug?

Keith

27
Web Server - Ask For Help / Lookup generating error on Double Click
« on: December 05, 2014, 02:14:07 AM »
HI

I have been adding Lookups to my app with 100% success.  However, I noticed today (after an inadvertent 'double click' of a row in the browse) that I got the error in the attached png.

My selection browse for the lookup is a pop up and has no Form, just an in-line select button.  I have checked other lookups and some do not exhibit this behaviour while at least one other one does.

The error refers to the primary key on the Customer File and I am looking up on the 'Pets' file (and Customers have many pets).  I suspect that this problem must have something to do with the key and relationship definition but what?

Thanks

Keith


[attachment deleted by admin]

28
HI

I have an app which draws graphs using InsightGraphing.  IG creates a picture of the graph and stores it temporarily in the Web/Images folder.

While poking around with trace I noted this sequence:

[1596] [st] [netTalk][thread=3] LinkPage=$$$80762.png                                                                                                                                                                                                                                                   
[1596] [st] [netTalk][thread=3] error:  0

I have confirmed that every time a graph is generated (the  $$$nnnn.PNG file) the 'error: 0 is reported.

Since this does not result in any noticeable bad behaviour I am sure that it is a natural artefact of the process (maybe deleting the file) but I wonder if someone could confirm - I don't like mysteries  ???

Thanks

Keith

29
Web Server - Ask For Help / Abandoned records
« on: October 30, 2014, 12:26:49 PM »
My original post about records lurking in tables when they hadn't been saved (which turned out to have a name - 'abandoned records') was lost in the recent Restore but I wanted to report on the outcome.

Bruce explained why this happens and gave pointers on how to deal with the situation, very useful.

I opted for adding a 'Valid' field on all of the tables together with a 'Created Date' and setting 'Valid' to TRUE on 'Save'.  Adding a filter on the browse for that table to exclude Vaild = FALSE and a management routine to delete old invalids looks ok.

Thanks Bruce (and Kevin for tips).

Cheers

Keith

30
Web Server - Ask For Help / Best place to process a URL parameter
« on: September 30, 2014, 05:38:21 PM »
I want my application to be accessed in two ways: a 'normal' user starts with a standard IP or domain name but a 'guest' (with restricted capabilities) starts with a URL parameter, say, ?bus=area1 (bus can take a variety of values which designate an area of activity).

In the NewSession procedure I set the bus session variable to 'normal'.  In the ProcessLink procedure I test for the presence of a variable and create the bus session variable viz:

  if p_web.IfExistsValue('bus')
     p_web.StoreValue('bus')
  END   

I the value of 'bus' is 'normal' then in later Process link code I do something but if it's not then I do other things.  However, 'bus' looks as if its getting reset to 'normal' after starting off as 'area1'. 

Have I done the right thing as regards the variable in the NewSession and ProcessLink code?

Something is obviously wrong because as I run thru the menus etc I get strange behaviour.  If I run the app with no starting variable it works fine.

Thanks

Keith

Pages: 1 [2] 3 4 ... 7