Retaining sheets order when fetched via Engine API
I am able to retrieve the sheets list in an app using the call below.
/iv/qrs/app/object/?Xrfkey=<xrf-key>&filter=app.id eq <app id> and objectType eq 'sheet'
The problem is that this retrieves the sheets in random order and there is no way to tell what order these sheets appear on the sheets list when accessed via HUB UI. Is there any way I could force the engine API return the sheets in the same order as they are on the HUB UI. Or some other kind of parameter I could use to determine this?
Re: Retaining sheets order when fetched via Engine API
You can do this using capability API or enigma.js, I dont know about the REST API.
Using enigma.js you can call the method getallinfo() and it will give the list of all objects,master items and sheets.
filter the sheets from the data and pass the id of sheet in getobject() method and call the getlayout() method.
The output data from the getlayout method is in json format just search for the rank word and that will be your sheet rank and sort that rank in ascending form and you will get the sorted sheet details as shows in qlik sense app.
The same steps you can do in dev-hub-engine-api explorer(for checking the data output)