NetTalk Central

Author Topic: Last page of a Browse doesn't display  (Read 4561 times)

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
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
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Last page of a Browse doesn't display
« Reply #1 on: February 19, 2015, 11:51:13 PM »
my guess is that you have ticked on "allow xhtml" on one of the columns, but you are not checking that the data you are trying to display is actually valid. You can confirm this by opening the Firebug console in your browser, and then clicking on "Next". I expect you will see a javascript error reported on the last page.

Cheers
Bruce

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Last page of a Browse doesn't display
« Reply #2 on: February 20, 2015, 01:32:37 AM »
H Bruce

Checked all of the fields in the Browse and no 'Allow HTML' is checked.  Opened Firebug as you suggested and got no errors - see attached picture.

Thanks

Keith

[attachment deleted by admin]
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Last page of a Browse doesn't display
« Reply #3 on: February 20, 2015, 01:46:40 AM »
then I'd need to see an example to duplicate the effect here.

cheers
Bruce

Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Last page of a Browse doesn't display
« Reply #4 on: February 21, 2015, 12:37:32 AM »
Bruce

Attached is a zip file with app dct and a file. 

You can login with anything in the three fields.

I have stripped this down to the 'Original' Browse (the one I said didn't display the last page) and a newly wizarded Browse on the same file to which I have done nothing except delete most of the file fields.

Both of them exhibit bad behaviour as regards display 'next' etc.

Thanks for looking at this and am very interested in the answer except if I have done something really stupid!

Cheers

Keith



[attachment deleted by admin]
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Last page of a Browse doesn't display
« Reply #5 on: February 23, 2015, 01:13:55 AM »
Hi Keith,

I don't think you've done much "wrong" - but thanks to the example I can see the cause of the problem.

You have the app set to "Store Data as" utf-8, but some of the data in the table itself is not valid utf-8. The class wasn't allowing for this, and so at that point it got a bit knotted.

So, for the 8.36 build I've added some code to deal gracefully with invalid utf-8. (it basically assumes ASCII in that case.)

On your side you may want to rethink whether the data should be "stored as" utf-8.

cheers
Bruce


Keith

  • Sr. Member
  • ****
  • Posts: 306
    • View Profile
    • Email
Re: Last page of a Browse doesn't display
« Reply #6 on: February 23, 2015, 06:51:58 PM »
Hi Bruce

The data for that table was loaded from an Excel spreadsheet so I can see how this has happened.

Thanks for the explanation.  Another trap to watch out for.

Cheers

Keith
Clarion 10.0.0 build 12799
NetTalk 9.31
StringTheory 2.65
InsightGraphing 2.27