Skip to main content
Announcements
Global Transformation Awards submissions are open! SUBMIT YOUR STORY
cancel
Showing results for 
Search instead for 
Did you mean: 
mklaczak
Partner - Contributor
Partner - Contributor

Uploading/Publishing Qlik Objects to Hub through Enigma.js

Hello,

I am currently trying to figure out a way to publish objects (charts/tables/variables/dimensions/etc) to the Qlik Hub from an application. I've been using Javascript, Enigma.js, and have been hosting the application on the same machine as the Qlik server as a mashup extension.

I've noticed there is a method called createObject() in the Engima.js API for use upon Generic Objects in Qlik, but I have working, but only creates objects locally (in application memory, not persistent, not in the hub). If I try to call the publish() method on that object, I receive a 'Bad Request' error.

This is the repo for Engima.js: https://github.com/qlik-oss/enigma.js. And the API schema: https://github.com/qlik-oss/enigma.js/blob/master/schemas/12.1477.0.json

Pretty stuck, any help would be greatly appreciated.

Thanks,

Matt

I've tried using the createObject() method:

"CreateObject": {
                "In": [{ "Name": "qProp","DefaultValue": {"qInfo": {"qId": "", "qType": ""}, "qExtendsId": "", "qMetaDef": {}, "qStateName": ""} }],
                "Out": [{ "Name": "qInfo" }]
            }

in tandem with publish() which is for Generic Objects in Qlik:

"Publish": {
                "In": [],
                "Out": []
            }

But receive a Bad Request error.

Labels (1)
1 Reply
Andrew_Delaney
Support
Support

Are you trying to publish the entire app? Or is the app already published and you are trying to publish a sheet?

 

I must admit I'm not familiar with using enigma myself, but in the context of the Qlik Sense you publish Apps to the hub, and you publish sheets/bookmarks within the app to make them publish. Generally publishing a sheet will also publish every object on that sheet.