This file contains 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.createCube({ | |
qDimensions: [{ | |
qDef: { | |
qFieldDefs: ["Sales Rep Name"] | |
}, | |
qShowTotal: false, | |
qOtherTotalSpec: { | |
qOtherMode: 'OTHER_COUNTED', | |
qOtherCounted: { | |
// Sets the number to limit by |
This file contains 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 https = require('https'); | |
var fs = require('fs'); | |
var options = { | |
rejectUnauthorized: false, | |
hostname: <QRS HOST NAME>, | |
port: 4242, | |
path: '/qrs/dataconnection/18a67b3a-2228-4c06-9e38-c9cb9900288c?xrfkey=abcdefghijklmnop', | |
method: 'PUT', | |
headers: { |
This file contains 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
//Require the module | |
var qsocks = require('qsocks'); | |
//For Qlik Sense Desktop | |
//You have two different entry points, the global handle or connect directly to an app. | |
//The entire Engine API is async and managed through promises in this module. | |
//Global | |
//Connecting to the Engine, once connected returns the handle for global. |
This file contains 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(['js/qlik', 'jquery'], function(qlik, $, $element) { | |
var id = 2; | |
return { | |
paint: function($element) { | |
var app = qlik.currApp(); | |
$element.html("<button id='reload'>Reload</button>") |
This file contains 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 request = require('request'); | |
var Promise = require("es6-promise").Promise | |
var fs = require('fs'); | |
var certs = require('./certs'); | |
module.exports = function() { | |
var r = request.defaults({ | |
rejectUnauthorized: false, | |
key: certs.key, |
This file contains 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
function arrangeLabels() { | |
var move = 1; | |
while (move > 0) { | |
move = 0; | |
svg.selectAll(".place-label") | |
.each(function() { | |
var that = this, | |
a = this.getBoundingClientRect(); | |
svg.selectAll(".place-label") | |
.each(function() { |
This file contains 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 fs = require('fs'); | |
var request = require('request'); | |
//Set our request defaults, ignore unauthorized cert warnings as default QS certs are self-signed. | |
var r = request.defaults({ | |
rejectUnauthorized: false, | |
host: 'usrad-akl.qliktech.com', | |
pfx: fs.readFileSync("C:\\QlikTech\\Demo Team\\Node\\qsocks\\client.pfx") | |
}) |
This file contains 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
/* | |
* Create a listobject, sort by a expression and include a expression. | |
* Tested on QIX Engine API 1.1 | |
* Alexander Karlsson - http://github.com/mindspank - [email protected] | |
*/ | |
//Your server you want to connect to. | |
var config = { | |
host: 'sense-demo.qlik.com', |
This file contains 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
(function(console){ | |
console.save = function(data, filename){ | |
if(!data) { | |
console.error('Console.save: No data') | |
return; | |
} | |
if(!filename) filename = 'console.json' |
OlderNewer