Skip to main content
Solved

OData adherences to subject definition


Forum|alt.badge.img+4

Hi,

We have a subject definition with a default sort order on three columns and a prefilter which is always on (logged on user specific content filter). When this subject is opened from a menu-item, it shows the records in the correct (subject defined) sort order.

When this same subject is accessed using the API, it seems to have a different (or no) sort order. When looking at the request Universal sends to Indicium using the same endpoint, all sort columns are specified in the request.

Is my assumption correct that the sort order, which is defined on the subject level, is not used when accessing the resource through the endpoint without any parameters? Or is there some setting that can be used. It would be preferred to use as much the subjects configuration where possible so it only has to be coded in the backend.

Best answer by Mark Jongeling

Hi Robert,

The model definition is used by Universal to call the API of Indicium in the preferred way. Indicium will not apply sorting automatically when simply retrieving all table data. The sorting must be given with the request URL.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Robert,

The model definition is used by Universal to call the API of Indicium in the preferred way. Indicium will not apply sorting automatically when simply retrieving all table data. The sorting must be given with the request URL.


Forum|alt.badge.img+4

Hi Mark,

Thanks for the reply. That makes it clear why the external consumer get’s another sorting order than defined at the subject level.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings