Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
dvasseur
Partner - Creator III
Partner - Creator III

QSE: GetSetAnalysis working but empty ?

HI,

I'm using the QSE JSON API to retrieve the bookmarks list of an app (GetBookmarks) and then I'm calling GetSetAnalysis on each bookmark to retrieve the selected values for each field. The GetSetAnalysis call itself is working, but the returned list is always empty. Checking the same app using Chrome dev tools and the websocket messages, the same call with the same params is returning the right values => I'm probably missing something, but what ?

GetBookmarks

call:
{"handle": 1, "method": "GetBookmarks", "params": {"qOptions": {"qTypes": ["bookmark"], "qData": {"title": "/qMetaDef/title", "sheetId": "/sheetId", "selectionFields": "/selectionFields", "creationDate": "/creationDate", "approved": "/approved", "published": "/published"}}}, "outKey": -1, "id": 2}

response (OK):
"jsonrpc":"2.0","id":2,"result":{"qList":[{"qInfo":{"qId":"ffff1727-97e8-440c-bd09-b9fa79af382e","qType":"bookmark"},"qMeta":{"title": ...

GetSetAnalysis:

call:
{"handle": 1, "method": "GetSetAnalysis", "params": ["$", "ffff1727-97e8-440c-bd09-b9fa79af382e"], "id": 3}

response => qSetExpression shouldn't be empty
{"jsonrpc":"2.0","id":3,"result":{"qSetExpression":""}}

call/response as extracted from chrome dev tools (qSetExpression is not empty):
{"delta":true,"handle":1,"method":"GetSetAnalysis","params":["$","ffff1727-97e8-440c-bd09-b9fa79af382e"],"id":78,"jsonrpc":"2.0"}
{"jsonrpc":"2.0","id":78,"delta":true,"result":{"qSetExpression":[{"op":"add","path":"/","value":"<appName={'___a'}>"}]}}

Labels (1)
  • API

12 Replies
dvasseur
Partner - Creator III
Partner - Creator III
Author

OK, I found the issue, I was opening the app using OpenDoc with [appid, "", "", "", True] <- Open "without data" ...

=> That kind of make sense but it there other way to get the bookmark content ? I'm running a python script to retrieve the bookmarks content of all of our apps, so I don't want to open all of them with data

 

alex_colombo
Employee
Employee

Bookmarks stay in the apps, so you have to open all of them with data for looking for their values. Opening without data means to open without data model and fields.

dvasseur
Partner - Creator III
Partner - Creator III
Author

OK, thanks for you help !