axis-api
v0.8.5
Published
An API for rapidly building data apps on top of the QIX Engine using qsocks
Downloads
11
Keywords
Readme
AxisAPI Documentation
The AxisAPI is used to establish a connection with a QlikSense server and get information from it. It is used in tandem with Qlik's Engine API to create objects, make selections, and anything else you would do inside of a native QlikSense application.
The following snippet shows how to:
Connect to the Sense Server
Open an application
Create a session object
var appId = 'e96629fd-902d-4e33-9bf2-12a8cf8de3e7';
var global = axisAPI.global()
.host('sense.axisgroup.com')
.isSecure(false)
.sessionId(appId)
.connect();
var app = axisAPI.app()
.appId(appId)
.global(global)
.open();
var prop = {
'totalSales':{ qValueExpression: '=sum([Sales Amount])'},
'qInfo':
{
'qType': 'qValueExpr',
}
};
var obj = axisAPI.object()
.app(app)
.prop(prop)
.on('create',function(object){
})
.on('paint',function(object){
})
.create();
var obj2 = axisAPI.object()
.app(app)
.qId('qZPdytp')
.on('create',function(object){
})
.on('paint',function(object){
})
.create();
Refer to the axisAPI Wiki to see the details about each step in the process. There are also training exercises to help build your understanding.