Skip to content
Qlik Server Side Extension in nodejs
JavaScript
Branch: master
Clone or download
Latest commit 8639a6f Dec 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
docs docs: add api and concepts Dec 4, 2018
examples docs: add k-means cluster sample Dec 4, 2018
lib feat: enable script evaluation Dec 4, 2018
.editorconfig
.eslintignore chore: initial commit Aug 23, 2018
.eslintrc.json chore(eslint): disable no-nested-ternary Dec 4, 2018
.gitignore
LICENSE
README.md
package.json

README.md

qlik-sse

qlik-sse is an npm package that simplifies the creation of Qlik Server Side Extensions in nodejs.

Check out Server Side Extension for more info and how to get started from the Qlik side.



Getting started

Prerequisites

Before continuing, make sure you:

  • have Node.js >= v0.8.0 installed
  • can configure your Qlik installation (or dockerized Qlik Engine)

Usage

Start by installing qlik-sse:

npm install qlik-sse

Next, create a file foo.js:

const q = require('qlik-sse');

// create an instance of the server
const s = q.server({
  identifier: 'xxx',
  version: '0.1.0',
});

// register functions
s.addFunction(/* */);

// start the server
s.start({
  port: 50051,
  allowScript: true
});

and then run it to start the SSE plugin server:

node foo.js

Configure the SSE in your Qlik installation by following these instructions

If you're running Qlik Sense Desktop (or Qlik Engine) locally, restart it after starting the SSE server to allow Qlik Engine to get the SSE plugin's capabilities.

Assuming you have named the plugin sse, you should now be able to use it's script functions in expressions:

sse.ScriptEval('return Math.random()*args[0]', sum(Sales));

You have now successfully created a Server Side Extension that can be used from within Qlik Sense or Qlik Core.

Take a look at some of the examples on how to add functionality to the SSE.

TODO

  • Documentation
    • API
    • Explain function types SCALAR, AGGREGATION and TENSOR
    • Table load
  • Examples
    • How to use tensorflow with qix data
    • Real use cases
      • linear regression
      • k-means
      • ...
    • Full Qlik example
      • configuring Qlik Engine to use SSEPlugin
      • dockerized environment
      • loading data
      • expression calls
  • Features
    • Script evaluation
    • Error handling
You can’t perform that action at this time.