Menu

#41 Sort Not Working on Panel Grid

5.2.1
open
nobody
None
2017-06-19
2017-06-09
Tom Malick
No

In my developed application, I have selected Can Sort on the grid column properties and the column header responds to clicks (up and down arrows designating sort direction show up), however, the data in the grid doesn't actually sort. Is there a setting somewhere that I'm missing that will make the data in the grid sort when clicking on the column headings?

Discussion

  • mcarniel

    mcarniel - 2017-06-12

    Look at the log file generated by Platorom on the server side:

    <yourinstallationpath>/logs/platform.log</yourinstallationpath>

    You can check out which SQL query is executed when you click on a column header to sort it.
    Probably there is not any problem: you simply have clicked on multiple columns to sort and, consequently, additional order by clauses have been added to the base SQL query.
    Bear in mind that every time you click on a column a new clause it added. Example:

    • click on column A -> select ... from ... where ... order by columnA
    • then click on column B -> select ... from ... where ... order by columnA,columnB

    Threrefore, you could not notice any change in data on the grid, but that's due to the first order by condition!

     
    • Tom Malick

      Tom Malick - 2017-06-12

      Hello...
      Thank you for your response.  I got the sort to work by taking the ORDER BY clause off of the business component.  However, now the original sort is via the SELECT  clause, whichh starts with a numeric key value.  Maybe i need to remove the key value from the SELECT clause?  Will the update/save still work if I do that?
      Regards...Tom

      On Monday, June 12, 2017 2:21 AM, mcarniel <mcarniel@users.sf.net> wrote:
      

      Look at the log file generated by Platorom on the server side:<yourinstallationpath>/logs/platform.logYou can check out which SQL query is executed when you click on a column header to sort it.
      Probably there is not any problem: you simply have clicked on multiple columns to sort and, consequently, additional order by clauses have been added to the base SQL query.
      Bear in mind that every time you click on a column a new clause it added. Example: </yourinstallationpath>

      • click on column A -> select ... from ... where ... order by columnA
      • then click on column B -> select ... from ... where ... order by columnA,columnB
        Threrefore, you could not notice any change in data on the grid, but that's due to the first order by condition! [tickets:#41] Sort Not Working on Panel GridStatus: open
        Milestone: 5.2.1
        Created: Fri Jun 09, 2017 02:42 PM UTC by Tom Malick
        Last Updated: Fri Jun 09, 2017 02:42 PM UTC
        Owner: nobodyIn my developed application, I have selected Can Sort on the grid column properties and the column header responds to clicks (up and down arrows designating sort direction show up), however, the data in the grid doesn't actually sort. Is there a setting somewhere that I'm missing that will make the data in the grid sort when clicking on the column headings?Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/xwsplatform/tickets/41/To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
       
  • mcarniel

    mcarniel - 2017-06-19

    Hi!

    It is really hard to understand what you are saying...
    What does it mean: i need to remove the key value from the SELECT clause? Will the update/save still work if I do that?

     

Log in to post a comment.

MongoDB Logo MongoDB