This file contains hidden or 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
| addons: { | |
| uses: "addons", | |
| items: { | |
| dataHandling: { | |
| uses: "dataHandling", | |
| items: { | |
| rowCount: { | |
| ref:'qHyperCubeDef.qInitialDataFetch.0.qHeight', | |
| type:'integer', | |
| label: 'Row count', |
This file contains hidden or 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: { | |
| qHyperCubeDef: { | |
| qDimensions: [], | |
| qMeasures: [], | |
| qInitialDataFetch: [{ | |
| qWidth: 20, | |
| qHeight: 500 | |
| }] | |
| } | |
| } |
This file contains hidden or 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
| function startReload(taskid) { | |
| return qlik.callRepository('/qrs/task/' + taskid + '/start', 'POST').then(function(reply) { | |
| console.log('start task', reply); | |
| }); | |
| } |
This file contains hidden or 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
| function createTask(appid, appname){ | |
| qlik.callRepository('/qrs/ReloadTask', 'POST', { | |
| app: { | |
| id: appid | |
| }, | |
| enabled: true, | |
| name: "Reload " + appname, | |
| maxRetries: 5 | |
| }).then(function(reply){ | |
| console.log('Task created',reply); |
This file contains hidden or 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
| measures: { | |
| uses: "measures", | |
| min: 1, | |
| max: 6, | |
| items: { | |
| type: { | |
| ref: "qDef.type", | |
| type: "string", | |
| label: "Type", | |
| component: "dropdown", |
This file contains hidden or 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
| width: { | |
| type: 'string', | |
| component: 'dropdown', | |
| label: 'Width', | |
| ref: 'width', | |
| options: [{value: '', label: 'Default'}, | |
| {value: 'fill', label: 'Fill'}, | |
| {value: 'custom', label: 'Custom'}] | |
| }, | |
| customwidth: { |
This file contains hidden or 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
| width: { | |
| type: 'string', | |
| ref: 'width', | |
| label: 'Width', | |
| expression: 'optional' | |
| } |
This file contains hidden or 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
| addstate: { | |
| ref: "statename", | |
| label: "Add state", | |
| type: "string", | |
| change: function (data) { | |
| if(data.statename){ | |
| qlik.currApp().addAlternateState(data.statename); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| state: { | |
| ref: "qHyperCubeDef.qStateName", | |
| label: "State", | |
| type: "string", | |
| defaultValue: "$", | |
| component: "dropdown", | |
| options: function () { | |
| return qlik.currApp(this).getAppLayout().then(function (a) { | |
| return a.layout.qStateNames.concat('$').map(function (state) { | |
| return { |
This file contains hidden or 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
| addons: { | |
| uses: "addons", | |
| items: { | |
| advanced: { | |
| label: "Advanced", | |
| type: "items", | |
| items: { | |
| state: { | |
| ref: "qHyperCubeDef.qStateName", | |
| label: "State", |
NewerOlder