I am using OVSD 4.5 SP23. I have written a JSP page which lists calls where the logged in users organisation ID, begins with the callers organisations ID.
Due to a single sign on requirement and the ability to use both web and fat clients at the same time, the jsp page logs in to ovsd using the system account and the criteria is added using addCriterium statements.
My question is around sorting of the data. We need to be able to sort the data by any of the columns that are in the list (ID, Caller, Description, etc). I cannot see anything in the API to do this?
I cannot do it from Service Desk and reference the view because the logged in user is the system account so the conditions aren’t correct.
Can anyone advise how to manually sort the IServicecall array?
WEB-API does NOT contain any functionality to sort. If you need to sort you just use any sorting algorithm you want. IServicecall members are individual Servicall(s) from which you can retrieve any attribute and sort on that.