Hi Isomorphic ,
I have a grid with SQL datasource configured. The fetch is sent with an initial sort field and the query is generated fine and the query result is proper sorted as given below.
This is the mysql workbench snapshot of query with fieldname ordered in ascending order.
The data in developer console is also correctly sorted. This issue is that the data is not correctly sorted in the grid. It shows data in reverse order.
Snapshot of listgrid.
It's simple code as given below.
Even if we do client side sort only the data is sorted wrong. The sorting done by MySQL and sorting displayed on grid is different. Although it's a plain string field but I still tried setting the sortNormalizer and returning the string from there but same issue. Any suggestions?
Thanks in advance
I have a grid with SQL datasource configured. The fetch is sent with an initial sort field and the query is generated fine and the query result is proper sorted as given below.
This is the mysql workbench snapshot of query with fieldname ordered in ascending order.
The data in developer console is also correctly sorted. This issue is that the data is not correctly sorted in the grid. It shows data in reverse order.
Snapshot of listgrid.
It's simple code as given below.
Code:
<DataSource ID="code_table" serverType="sql" tableName="my_table"> <fields> <field name="code_id" type="sequence" primaryKey="true" hidden="true"/> <field name="measurement" type="text" /> </fields> </DataSource>
Code:
ListGridField field = new ListGridField("measurement","Measurement");
Even if we do client side sort only the data is sorted wrong. The sorting done by MySQL and sorting displayed on grid is different. Although it's a plain string field but I still tried setting the sortNormalizer and returning the string from there but same issue. Any suggestions?
Thanks in advance
Comment