qlik-demo-team / qdt-components

React Components to be used with Angular 10, React 16 and Vue 2. Connects with the Capability API and Engine API.
MIT License
92 stars 50 forks source link

Re-use enigma instance? #24

Closed countnazgul closed 5 years ago

countnazgul commented 6 years ago

I have implementation that is already using enigma to communicate with the Engine. And was thinking if its possible to use Qdt for some visualizations.

Is it possible to pass the global that i have from enigma to Qdt or I need to have separate session for Qdt?

yianni-ververis commented 6 years ago

Qdt-omponents has already made a connection via the Engine API. You can use the qDoc like

const qdtComponents = new QdtComponents(options.config, options.connections); const qDoc = await qdtComponents.qDocPromise; const qObject = await qDoc.createSessionObject(qProp);

countnazgul commented 6 years ago

Aha. This is cool. But since i have a lot of my code in place already using enigma and was wondering if its possible to pass the global directly to Qdt without re-writing ... its friday and only the lazy methods are in my head :)

yianni-ververis commented 6 years ago

Nope, not yet.

countnazgul commented 6 years ago

Thanks