I try to script an extension, which creates a story with more slides. The trigger should be a button. I could initially create the story, but I don't know how to create new slides. You will find my script bellow.
define( [ "qlik"
],
function ( qlik) {
return {
support : {
snapshot: true,
export: true,
exportData : false
},
paint: async function ($element) {
$element.empty();
const app = qlik.currApp();
const appId = app.id.split("\\").pop();
console.log("qlik:", qlik)
console.log("App:", app)
if (appId != "Test.qvf") {
$element.append("<p>This extension is only for the Bonus Scorecards app available!</p>");