View propertypanelrowcount.js
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
addons: { | |
uses: "addons", | |
items: { | |
dataHandling: { | |
uses: "dataHandling", | |
items: { | |
rowCount: { | |
ref:'qHyperCubeDef.qInitialDataFetch.0.qHeight', | |
type:'integer', | |
label: 'Row count', |
View initialProperties.js
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: { | |
qHyperCubeDef: { | |
qDimensions: [], | |
qMeasures: [], | |
qInitialDataFetch: [{ | |
qWidth: 20, | |
qHeight: 500 | |
}] | |
} | |
} |
View start_task.js
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
function startReload(taskid) { | |
return qlik.callRepository('/qrs/task/' + taskid + '/start', 'POST').then(function(reply) { | |
console.log('start task', reply); | |
}); | |
} |
View create_task.js
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
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); |
View property_panell_add_to_measure.js
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
measures: { | |
uses: "measures", | |
min: 1, | |
max: 6, | |
items: { | |
type: { | |
ref: "qDef.type", | |
type: "string", | |
label: "Type", | |
component: "dropdown", |
View property_panel_dropdown_custom.js
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
width: { | |
type: 'string', | |
component: 'dropdown', | |
label: 'Width', | |
ref: 'width', | |
options: [{value: '', label: 'Default'}, | |
{value: 'fill', label: 'Fill'}, | |
{value: 'custom', label: 'Custom'}] | |
}, | |
customwidth: { |
View gist:256e52ece04dfce2dbbacf543d85c029
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
width: { | |
type: 'string', | |
ref: 'width', | |
label: 'Width', | |
expression: 'optional' | |
} |
View create_alt_state.js
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
addstate: { | |
ref: "statename", | |
label: "Add state", | |
type: "string", | |
change: function (data) { | |
if(data.statename){ | |
qlik.currApp().addAlternateState(data.statename); | |
} | |
} | |
} |
View add_alt_state_dropdown.js
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
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 { |
View add_alt_state.js
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
addons: { | |
uses: "addons", | |
items: { | |
advanced: { | |
label: "Advanced", | |
type: "items", | |
items: { | |
state: { | |
ref: "qHyperCubeDef.qStateName", | |
label: "State", |
NewerOlder