on 02-11-2019 4:43 AM
In Backoffice I am trying to sort a collection of items in the editorArea. I would like to sort the objects in the list for a given property of the object. In my case sort on the modifiedtime. I have tried including a sort field in the backoffice-config.xml but this is not working.
Is there another way to do this? I have tried the following but it is not working.
<context type="LogFile" merge-by="type" component="simple-search">
<simple-search:simple-search>
<simple-search:field name="code" />
<simple-search:sort-field asc="false" name="modifiedtime" />
</simple-search:simple-search>
</context>
Attached is snapshot of what I'm trying to order.
[1]: /storage/temp/12280-example-logfiles.png
Please try the following code:
<context merge-by="type" parent="Media" type="LogFile" component="simple-search" module="platformbackoffice">
<simple-search:simple-search xmlns:simple-search="http://www.hybris.com/cockpitng/config/simplesearch">
<simple-search:field name="code" />
<simple-search:field name="modifiedtime"/>
<simple-search:sort-field asc="false" name="modifiedtime"/>
</simple-search:simple-search>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.