Qlik Community

Ask a Question

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Highlights 2020 Giveaway! Watch, reply and have a chance to win a $200 Amazon Gift Card! Watch Video
cancel
Showing results for 
Search instead for 
Did you mean: 
Contributor
Contributor

Using EnigmaJS to load qliksense visualization objects in qliksense.

 

I was using qlik capability API to get the visualization objects in my application. Then i needed jwt authentication for which i used EnigmaJS. Now i am able to get the objects from qlik sense but i am not able to bind it to html.

using capability API:
window as any).require(
             ['js/qlik'],
             (qlik=> {
 app = this.openAppByName(qlikqlikName);// this returns the qlik app
app .getObject(viewIdqlikId);  // this gets and loads the vis object in the html
// viewid is html div id and qlikid is object id
}
 
 
using enigmaJS: 
this.session.open().then((global=> {

      return global.getDocList().then((list=> {
        const apps = list.map((app=> `${app.qDocId} (${app.qTitle || 'No title'})`).join(', ');
        global.openDoc('04c1ff19-2403-4dea-aa20').then((app: any=> {
          this.app = app;
          app.getObject('pFJPTp');  // this returns the object but does not bind to html
          this.session.close();
        });
        this.session.close();
      });
      // this.session.on('closed', data => console.log('closed:', data));
    })

 

Is there any way through which i could use enigma method to load the visualization in the html app?

Labels (5)
0 Replies