[KULRICE-5399] Lookup - Should use SortDefinition and perform default sort Created: 18/Jul/11  Updated: 12/Aug/13  Resolved: 05/Jun/13

Status: Closed
Project: Kuali Rice Development
Component/s: Development, Roadmap
Affects Version/s: None
Fix Version/s: 2.3.0-m3, 2.3
Security Level: Public (Public: Anyone can view)

Type: Task Priority: Major
Reporter: Jerry Neal (Inactive) Assignee: Martin Taylor (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0 minutes
Time Spent: 45 minutes
Original Estimate: Not Specified

Issue Links:
discovered by KULRICE-8813 Lookup Result Display Closed
relates to KRRM-144 KRAD Equivalency with KNS Open
Rice Module:
KRAD Feature Area:
Application Requirement:
KAI Review Status: Not Required
KTI Review Status: Not Required
Include in Release Notes?:


Current LookupView has a list of sorting attributes, this actually needs to use the SortDefinition from the data dictionary or have
a separate attribute that specifies ascending or descending.

Also, the sort is not being performed at this point.

Comment by Jessica Coltrin (Inactive) [ 08/Nov/11 ]

double-tagging with 2.0.0-b3 for review.

Comment by Jeff Domeyer (Inactive) [ 21/Mar/13 ]

Sorting is mostly working in krad 2.2+

In krad.widget.js for the createTable function you need to clear the default sorting for datatables, otherwise by default they order by the first column in the table.

Add this:

/* Disable initial sort */
"aaSorting": []
var oTable = table.dataTable(options);
Generated at Sun Mar 07 14:47:34 CST 2021 using JIRA 7.0.11#70121-sha1:19d24976997c1d95f06f3e327e087be0b71f28d4.