Skip to Content
0
Jul 12, 2019 at 07:53 AM

sorting in XML view with navigation through IDs

74 Views Last edit May 21, 2020 at 03:21 PM 2 rev

Hi,

I want to sort a list using this path.

requiredSkills/skill/experience/code

(requiredSkills are the list items; requiredSkills is a [0..*], skill and experience are [1] relationships)

The expand just before works fine with this code: "parameters: {expand: 'skill, skill/profession, skill/experience'}"

But "sorter: { path: 'skill/experience/code', type:'sap.ui.model.type.String'}" throws this error:

"value":"Missing message for key 'ORDERBY_ON_NAVIGATION'!en"

I found out that I can use "sorter: { path: 'skill_ID', type:'sap.ui.model.type.String'}" without an error.

But "sorter: { path: 'skill_ID/experience_ID/code', type:'sap.ui.model.type.String'}" again throws an error.

I receive the same errors using Postman.

Does anyone know how to define this sorting correctly?