This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(['qvangular', 'qlik', 'jquery'],function(qvangular, qlik, $) { | |
| var SUPPORTED_CHARTS = ['barchart', 'piechart', 'linechart', 'combochart'] | |
| return { | |
| initialProperties : { | |
| version: 1.0, | |
| qHyperCubeDef : { | |
| qDimensions : [], | |
| qMeasures : [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app.getObject( "THE SHEET ID" ).then(function(obj) { | |
| // Patch some properties on the sheet. | |
| // In this case replace the column and row properties with new values | |
| obj.applyPatches([{ | |
| qPath: '/columns', | |
| qOp: 'replace', | |
| qValue: '200' | |
| },{ | |
| qPath: '/rows', | |
| qOp: 'replace', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define(['jquery'], function($) { | |
| return { | |
| initialProperties: { | |
| qListObjectDef: { | |
| qDef: { | |
| qFieldDefs: [ | |
| '[Fiscal Year]' | |
| ], | |
| qSortCriterias: [{ | |
| qSortByNumeric: -1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $qlikserver = "https://<qliksensehostname>:1337/" | |
| $nocache = '/nocache' | |
| $urls = $("24cc3e5a-622b-4267-97e0-38851090f5a7/JEBdZz", "24cc3e5a-622b-4267-97e0-38851090f5a7/ARNmpdM", "24cc3e5a-622b-4267-97e0-38851090f5a7/BmfQbz") | |
| foreach($url in $urls) { | |
| Invoke-RestMethod "$qlikserver$url$nocache" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var qsocks = require('qsocks'); | |
| var Promise = require('bluebird'); | |
| qsocks.Connect() | |
| .then(function(global) { | |
| return global.getDocList(); | |
| }) | |
| .then(function(doclist) { | |
| //Map over doclist, limit to 3 connection at a time to not choke the available sockets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( ["require"], function ( localRequire ) { | |
| var path = localRequire.toUrl( "extensions/d3-vis-library/d3-vis-library.css" ); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const qsocks = require('qsocks'); | |
| /** | |
| * Creating a master measure in Qlik Sense Desktop | |
| */ | |
| qsocks.Connect().then(function(global) { | |
| // Open a document | |
| global.openDoc('TestScript').then(function(app) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| define( ["jquery"], function ( $ ) { | |
| 'use strict'; | |
| return { | |
| initialProperties: { | |
| qHyperCubeDef: { | |
| qDimensions: [{ | |
| qDef: { | |
| qFieldDefs: ['Dim1'], | |
| qFieldLabels: [''] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Using Bluebird to help us with async flow control | |
| const Promise = require('bluebird'); | |
| // Qsocks is used to help with Engine API comminication | |
| const qsocks = require('qsocks'); | |
| // Connecting to Qlik Sense Desktop | |
| qsocks.Connect().then(function(global) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const qsocks = require('qsocks'); | |
| const fs = require('fs'); | |
| /** | |
| * Creating a master measure in Qlik Sense Desktop | |
| */ | |
| const config = { | |
| host: 'usrad-aklprobook', | |
| isSecure: true, | |
| rejectUnauthorized: false, |