NetTalk Central

Author Topic: One browse doesn't sort header  (Read 6718 times)

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
One browse doesn't sort header
« on: August 06, 2017, 10:05:01 PM »
I have one browse where the headers don't cause a sort of that column.
All the others are fine, and I can't see any difference!!

Help!!!


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: One browse doesn't sort header
« Reply #1 on: August 06, 2017, 10:38:00 PM »
Is that column a field in the table, or an expression?

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: One browse doesn't sort header
« Reply #2 on: August 06, 2017, 11:59:41 PM »
It's a field in the table.
It's actually a memory driver table filled by a stored procedure in init.
But all the browses are like that and this is the only one that doesn't sort

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: One browse doesn't sort header
« Reply #3 on: August 07, 2017, 09:40:30 PM »
if it's a field in the table it should sort ok. Perhaps turn on the debug options to send the filter and order to debugview, then inspect the order there when you sort by that column?

also I presume sorting on this column has not been set to "disabled" - something you can set on the Sort tab settings for that column...

cheers
Bruce

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: One browse doesn't sort header
« Reply #4 on: August 07, 2017, 09:49:25 PM »
I'll try and look

Just to note, this is All columns not sorting, not just one particular one.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: One browse doesn't sort header
« Reply #5 on: August 07, 2017, 09:52:37 PM »
oh - _all_ columns. ok, make sure the browse is page loaded not file-loaded.
And make sure sorting is set to Server-side, not "none".

cheers
Bruce

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: One browse doesn't sort header
« Reply #6 on: August 07, 2017, 10:18:36 PM »
Sorting is set as server-side.
But it's set to file load.
In fact all the browses are set to file load, and all the others column sort fine.
I'll try page loaded and see if there is a difference.

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: One browse doesn't sort header
« Reply #7 on: August 08, 2017, 02:25:27 AM »
Hi

Browse column needs to have a header for sort to work.
Browse column needs to be in the data table not in the local data table.

Cheers

Vinnie

seanh

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
    • Email
Re: One browse doesn't sort header
« Reply #8 on: August 09, 2017, 02:50:52 AM »
@Vinnie
Not sure exactly what you mean by needs to have a header? There is a header unless I misunderstand.
The data in all cases in this app comes from an SQL stored procedure thats copied into a memory table.  All other browses work fine and sort by column exept this one, which seems to be identical to alll the others.

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: One browse doesn't sort header
« Reply #9 on: August 09, 2017, 01:45:46 PM »
Hi Sean,

try to set the browse to only show 10 records or whatever so you display the next last buttons etc. If they don't work look at the data for any strange characters or if you have any columns set to allow xhtml. Try to also use the browser debug tool to see if it returns any xml errors when loading the browse.

Cheers,

Kevin