Facility Control

 View Only
  • 1.  Sort function in Parameter Table

    Posted 02-19-2020 16:54

    Hi. I try to find a solutions how to sort the order in parameter table (create an array with all data -> sort by one of columns value -> put new values into parameters after sorting), but i don't think this is the best solution and still i can make it working. So is there any build function (like .sort()) in the ogscript??



  • 2.  RE: Sort function in Parameter Table

    Posted 02-19-2020 21:40

    Hi Rafal! 

     

    When using a table in DashBoard, you can set a config property to enable sorting. Config options can be entered down here:

     

    One of those config options has the key "w.sortable". If you set that to true, you will be able to sort your tables by clicking on the column header.

    Now, clicking a column header will cause it to sort, toggling between ascending and descending sort.

     

    Hope that helps!

     

    Kyle


    #DashBoard


  • 3.  RE: Sort function in Parameter Table

    Posted 02-20-2020 01:19

    Thank You but i need to do this by ogscript.

    I need to make standings table. One of the param in the table i score and my first idea was to use the clickable header to sort by one of the column. But when i did it i realise that will produce wrong standings in the draw situation. 

    So i am searching for solutions where i can chose the parameter of sorting and create functions what to do if two values are the same.


    #DashBoard


  • 4.  RE: Sort function in Parameter Table

    Posted 02-20-2020 01:42

    i'm looking for something like this


    #DashBoard