Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
What is the proper method for adding a calculation condition to the property panel of a Qlik Sense visualization extension?
The Qlik Sense for Developers help document states that the Add-ons properties section may be reused and includes:
The data handling section includes two properties:
I have tried to reuse the entire predefined Add-ons section in my extension by adding the following code to the properties panel definition:
addons: {
uses: "addons"
}
However, when the Add-ons section is expanded, none of the predefined sections or properties are visible:
Am I missing something here?
Also, is it possible to add only the calculation condition property itself, without it having to be contained within the data handling and Add-ons sections?
As Stefan said it's not officially supported so this might break in the future but this is how you get access to both ref lines and calculation conditions. Use at your own risk, not covered by support agreements etc
addons: {
uses: "addons",
items: {
dataHandling: {
uses: "dataHandling"
}
}
}
Unfortunately this is not officially supported in visualization extensions right now, but we are looking into it to fill this gap!
Regards
Stefan
As Stefan said it's not officially supported so this might break in the future but this is how you get access to both ref lines and calculation conditions. Use at your own risk, not covered by support agreements etc
addons: {
uses: "addons",
items: {
dataHandling: {
uses: "dataHandling"
}
}
}
Thanks, Stefan. I look forward to seeing support for this in the future.
Thanks, Alexander. I'll try this to see how my extension works with a calculation condition until it's officially supported.
I use it in this extension, mindspank/AnimatedScatterPlot · GitHub, and haven't run into any issues yet.
Not sure how it would behave itself if you are doing a angular based extension.
That's good to know. I'm not using Angular for the extension, just the paint method, so it should be fine.