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
//created from the mashup editor | |
app.createCube({ | |
"qInitialDataFetch": [ | |
{ | |
"qHeight": 20, | |
"qWidth": 2 | |
} | |
], | |
"qDimensions": [ | |
{ |
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.visualization.create('barchart', // a bar chart | |
["Case Owner Group", // one dimension | |
"=Avg([Case Duration Time])"], // one measure | |
{"title":"On the fly barchart"}). // set the title | |
then(function(vis){ // when its ready | |
vis.show("QV03"); // show the chart | |
}); |
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 : { | |
qListObjectDef : { | |
qShowAlternatives : true, | |
qFrequencyMode : "V", | |
qSortCriterias : { | |
qSortByState : 1 | |
}, | |
qInitialDataFetch : [{ | |
qWidth : 2, | |
qHeight : 50 |
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
dimension : { | |
type : "items", | |
label : "Dimensions", | |
ref : "qListObjectDef", | |
min : 1, | |
max : 1, | |
items : { | |
label : { | |
type : "string", | |
ref : "qListObjectDef.qDef.qFieldLabels.0", |
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", |
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
//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
//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
//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
// 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 | |
} | |