Create an appON THIS PAGE
Create an app by using the CreateApp Method .
You can create a session app, that cannot be persisted, by using the CreateSessionApp method or the CreateSessionAppFromApp method .
Examples
Example 1:
The goal is to create the app Sales1stQuater.
This app should be persisted. Therefore the CreateApp Method is used.
The client sends:
{
"jsonrpc": "2.0",
"id": 0,
"method": "CreateApp",
"handle": -1,
"params": [
"Sales1stQuater.qvf"
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"qSuccess": true,
"qAppId": "C:\\Users\\smu\\Documents\\Qlik\\Sense\\Apps\\Sales1stQuarter.qvf"
}
}
The app is created.
Example 2:
The goal is to create an empty session app.
This app should not be persisted. Therefore, the CreateSessionApp method is used.
The client sends:
{
"jsonrpc": "2.0",
"id": 4,
"method": "CreateSessionApp",
"handle": -1,
"params": []
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 4,
"result": {
"qReturn": {
"qType": "Doc",
"qHandle": 1
},
"qSessionAppId": "SessionApp_d34f6d54f5a3478c8d0d0b37b0065d47"
},
"change": [
1
]
}
The app is created. The identifier of the session app is SessionApp_d34f6d54f5a3478c8d0d0b37b0065d47 .
Example 3:
The goal is to create a session app from a source app.
The session app should be created from the app Golf Quest.qvf and should not be persisted. Therefore, the CreateSessionAppFromApp method should be used.
The CreateSessionAppFromApp method copies the objects present in the Golf Quest app into the session app. The objects in the session app initially contain no data. You need to reload the app to get some data.
The client sends:
{
"jsonrpc": "2.0",
"id": 0,
"method": "CreateSessionAppFromApp",
"handle": -1,
"params": [
"E:\\GIT\\engine-sense-fork\\prod\\data\\Engine\\test\\qlikviewTests\\ProtocolTester4Net\\TestData\\Golf Quest.qvf"
]
}
The engine returns:
{
"jsonrpc": "2.0",
"id": 0,
"result": {
"qReturn": {
"qType": "Doc",
"qHandle": 1
},
"qSessionAppId": "SessionApp_8d0ab4c75c6a4421af2f7e2bfd90fc37"
},
"change": [
1
]
}
The app is created. The identifier of the session app is SessionApp_8d0ab4c75c6a4421af2f7e2bfd90fc37 .