Bug #19630

FE - React - Datatable sorting column should not return value when no sorting

Added by chok yee fan 9 months ago. Updated 9 months ago.

Status:ClosedStart date:31 January 2024
Priority:NormalDue date:
Assignee:chok yee fan% Done:

0%

Category:-Spent time:-
Target version:-

Description

issue
-----
any module -> click search -> click on table title -> datatable return sortValue e.g. [desc:false, id:"orgTypeName"] -> click title again -> datatable return sortValue e.g. [desc:true, id:"orgTypeName"] -> click title again -> datatable return sortValue e.g. [desc:false, id:"orgTypeName"].

expected
-----
any module -> click search -> click on table title -> datatable return sortValue e.g. [desc:false, id:"orgTypeName"] -> click title again -> datatable return sortValue e.g. [desc:true, id:"orgTypeName"] -> click title again -> datatable return sortValue null/undefined.

the main objective do not pass columnSortingBean to web service when no sorting.

WhatsApp Image 2024-02-02 at 11.47.58 AM.jpeg (108 KB) Hazimi Muhammad, 02 February 2024 11:48 AM

History

#1 Updated by Amirul Umar Pandai 9 months ago

  • Status changed from New to Resolved
  • Assignee changed from Amirul Umar Pandai to Hazimi Muhammad

#2 Updated by Hazimi Muhammad 9 months ago

Scenario :
Click mleb function > click search -> click on table title MLEB System -> Not working
Click mleb function > click search -> click on table title Function Name -> Got the error as the screenshot
Issue :

Got error when to add new data

Expected :

should both data table working

#3 Updated by Hazimi Muhammad 9 months ago

Issue :

Click mleb function > click search -> click on table title MLEB System -> Not working
Click mleb function > click search -> click on table title Function Name -> Got the error as the screenshot

Expected :

should both data table working

#4 Updated by Amirul Umar Pandai 9 months ago

  • Status changed from In Progress to Resolved
  • Assignee changed from Amirul Umar Pandai to Hazimi Muhammad

MLEB System Not working - accessorKey was not provided
Function Name error - accessorFn was used instead of accessorKey


Fix error in MLEB Function search page + remove React.useMemo from table pages

https://dev.silverlakemobility.com/gitlab/mleb-solution-domain/smesd100/mleb-iam/-/commit/5e19cc023ded5497abb1164f48cdcbc79b381461

#5 Updated by Hazimi Muhammad 9 months ago

  • Assignee changed from Hazimi Muhammad to chok yee fan

Check for MLEB Function search MLEB system and Function Name

Now working perfectly

#6 Updated by chok yee fan 9 months ago

  • Status changed from Resolved to Closed

tested few modules and working fine

Also available in: Atom PDF