sort order for dates and numbers in datalists - UX

Confluence User - 01 Mar, 2021

I really need a datalist UX (client side) sort that works . I understand Joget stores everything as text but i need to sort amounts as numbers, account numbers as numbers and dates accordingly. this is a financial requirement. 


I dont mind if there is a external js library that works, i cant even begin to make sense of the footable implementattion that Joget seems to use.

datalists

1


02 Mar, 2021
confluenceUser
confluenceUser

Datalist sort uses lexicographic order, the app treats the column values as *strings* and compares character by character left to right. To produce a numerical order, use datalist JDBC Binder and *CAST* the column to UNSIGNED, for example:

SELECT
       id
     , CAST(c_thisIsANumberField AS UNSIGNED) as Number
from
       app_fd_myTable
RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print