cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sort the list of reference objects in backoffice

0 Likes
1,287

Hi ,

I have to show the sorted orders by creation time in backoffice on customer object,could anyone have idea what will be the correct approach.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Likes

Hi Tomasz,As per your comment above I tried and that worked but one issue was there is the list is sorted as per requirement but I am not able to create any new order there on customer editor area. I mean I am able to select/remove any order in the orders list on customer but create functionality is not working even wen clicking on 3 dots to open editor area is not working from orders list. Could you please suggest what I am missing. and below is the error message in console Stub widget slot for----- socketId: referenceEditorOutput could not be found

former_member437308
Active Participant
0 Likes

Hello,

You can switch to the ExtenedMultiReferenceEditor and sort data manually by clicking on configured column name - it is one option but will appear visual changes.
Second option would be to write your own editor by extending it from com.hybris.cockpitng.editor.defaultmultireferenceeditor.DefaultMultiReferenceEditor. In the method protected void changeSelectedObject(final Collection<T> list) you can sort collection elements as you wish and call super.changeSelectedObject(sortedList).

Cheers!