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
initialProperties: { | |
moneyFormat: { | |
qStringExpression: '=MoneyFormat' | |
}, | |
qMeasureListDef: { | |
qType: "measure", | |
qData: { | |
qMeasure: "/qMeasure" | |
} | |
}, |
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
if (this.backendApi.isSnapshot) { | |
chartDef.chart.animation = false; | |
chartDef.plotOptions = { series: { animation: false } }; | |
} |
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 defer = qlik.Promise.defer(); | |
Highcharts.chart($element.find('div')[0], chartDef, function() { | |
// callback function called when Highcharts is ready | |
setTimeout(function() { | |
defer.resolve(); | |
}, 1000); //one second delay was needed | |
}); | |
return defer.promise; |
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
paint : function() { | |
return qlik.Promise.resolve(); | |
} |
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
// turn snapshot support on in your extension | |
support: { | |
snapshot: true, //snapshot - include in story | |
export: true, //export to PDF, PowerPoint and image | |
exportData: true //export data to excel | |
} | |
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
//send a CreateSessionObject to the app (handle 1), request id 7 | |
{"method":"CreateSessionObject", | |
"handle":1, | |
"params":[ | |
{"qInfo":{"qId":"SheetList","qType":"SheetList"}, | |
"qAppObjectListDef":{"qType":"sheet", | |
"qData":{"title":"/qMetaDef/title","description":"/qMetaDef/description", | |
"thumbnail":"/thumbnail","cells":"/cells","rank":"/rank","columns":"/columns","rows":"/rows"} | |
} | |
} |
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
//a measure list definition that gives you more data on the measures | |
app.createGenericObject({ | |
qInfo: { | |
qType: "MeasureList" | |
}, | |
qMeasureListDef: { | |
qType: "measure", | |
qData: { | |
qMeasure: "/qMeasure" | |
} |
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
//part of the result from app.createGenericObject with custom qMeasureListDef | |
{ | |
qInfo: {qId: "SLJUwQj", qType: "measure"}, | |
qMeta: {description:"", tags:["sales"], title:"Sales Quantity"}, | |
qData: {qMeasure: | |
{ | |
qActiveExpression:0, | |
qDef:"Sum([Sales Quantity])", | |
qExpressions:[], | |
qGrouping:"N" |
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
//part of the result from app.getList("MeasureList",callback) | |
{ | |
qInfo: { qId: "SLJUwQj", qType: "measure"}, | |
qMeta: {description:"", tags:["sales"], title:"Sales Quantity"}, | |
qData: {tags:["sales"], title:"Sales Quantity"} | |
} |
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.createList({ | |
"qFrequencyMode": "V", | |
"qDef": { | |
"qFieldDefs": [ | |
"Department" | |
] | |
}, | |
"qExpressions": [ | |
{ | |
"qLabel": "Closed Cases", |