cancel
Showing results for 
Search instead for 
Did you mean: 

how to sort the orders by total price in user and want to display in the backoffice

SruthiRaj
Discoverer
0 Kudos

<context merge-by="type" type="User" component="simple-search" module="exploringbackoffice">
<simple-search:simple-search xmlns:simple-search="http://www.hybris.com/cockpitng/config/simplesearch">
<simple-search:field name="order" />
<simple-search:field name="totalprice"/>
<simple-search:sort-field asc="true" name="modifiedtime"/>
</simple-search:simple-search>
</context>

 

 

Is it right or need to write the renderer class

Accepted Solutions (0)

Answers (1)

Answers (1)

adamreisberg
Active Participant
0 Kudos

Hi @SruthiRaj 

Can you add some clarification on what you are trying to do here?

  1. Are you trying to display the sum of the total order prices for a customer?
  2. Are you trying to display the total order price for a single order of a customer?

What you have right now will filter Users based on an Order. You will not be able to filter (using simple search) based on the Total Order Price.

If you are looking to display the "Sum of all of the Total Order Prices for Customers", I would recommend looking into Report Definitions / ViewTypes

Report Definitions (ViewTypes) in Backoffice Administration Cockpit | SAP Help Portal

SruthiRaj
Discoverer
0 Kudos
I need to sort the orders of customer based on the total price of each order