cancel
Showing results for 
Search instead for 
Did you mean: 

Showing data in desc order based on creation timestamp in Backoffice

dthakur
Newcomer
0 Kudos

I have a requirement of showing the data in backoffice view in descending order based on order creation time, i.e. latest orders should be at the top of the view.

I have the following list-view:

<context type="Order" component="cs-listview"
			 principal="customersupportmanagerrole,customersupportagentrole">
		<list:list-view
				xmlns:list="http://www.hybris.com/cockpitng/component/listView">
			<list:column qualifier="code"/>
			<list:column qualifier="name"/>
			<list:column qualifier="email"/>
			<list:column qualifier="date"/>
		</list:list-view>
	</context>

 I tried adding the below part but didn't see any difference:

<context type="Order" component="simple-search">
		<yss:simple-search
				xmlns:yss="http://www.hybris.com/cockpitng/config/simplesearch">
			<yss:field name="code"/>
			<yss:field name="name"/>
			<yss:field name="email"/>
			<yss:field name="date"/>
			<yss:sort-field asc="false" name="date"/>
		</yss:simple-search>
	</context>

 

Accepted Solutions (0)

Answers (0)