What is the simplest way to view the structure/layout of my Qlik dashboards in the form of XML or JSON files in Qlik Sense Desktop? So it should contain detailed informaions about visualizations & styles.
Is building a (Python) script to access information via the Qlik Engine JSON API the right approach?
Update 1 current Code
(async () => {
const { docMixin } = await import("enigma-mixin");
const fs = require('fs');
const enigma = require('enigma.js');
const WebSocket = require('ws');
const schema = require('enigma.js/schemas/12.612.0.json');
// create a new session:
const session = enigma.create({
schema,
mixins: [docMixin],
url: 'ws://localhost:9076/app/engineData',
createSocket: url => new WebSocket(url),
});
async function run() {
const global = await session.open()
// change to your appId
const doc = await global.openDoc("My_App")
const entities = await doc.mUnbuild()
await session.close()
}
await run();
})();
Output
const entities = await doc.mUnbuild()
TypeError: doc.mUnbuild is not a function
For QlikSense:
unbuildthe app into its components and saves them into json and yaml filesFor QlikView:
Tthis functionality exists into QV itself. Have a look at this tutorial how to create xml files with the app components
Update - Adding enigma-mixin example
In the script above
enitiesvariable will have the following content: