Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
robinrouleur
Partner - Creator
Partner - Creator

Extension addon for calculation condition with expression message

Does anyone know how to add a calculation condition to an extension where the message supports an expression?  Standard Qlik Sense charts have it so it should be possible.

I've tried the following but the message is plain text only:

addons: {
    uses: "addons",
    items: {
        dataHandling: {
            uses: "dataHandling"
        }
    }
},

Someone suggested the following and it sort of worked but was unreliable:

addons: {
    uses: "addons",
    items: {
        calcCond: {
           label: "Data handling",
           uses: "calcCond"
        }
    }
},
Labels (4)
1 Solution

Accepted Solutions
ajaykakkar93
Specialist III
Specialist III

OK i got it thanks for the image you need to enable calcCondlike this

addons: {
uses: "addons",
items: {
dataHandling: {
uses: "dataHandling",
items: {
calcCond: {
uses: "calcCond"
}
}
}
}
}

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

View solution in original post

4 Replies
ajaykakkar93
Specialist III
Specialist III

Hi,

I have attached a demo extension to test the code & the image also.

dataHandling.gif

Regards,

Ajay Kakkar

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

robinrouleur
Partner - Creator
Partner - Creator
Author

Thanks Ajay, this this works fine, however I want to use an expression in the message box like the following from a standard Sense chart, note the "fx"   to the right of the displayed message box.

clipboard_image_0.png

ajaykakkar93
Specialist III
Specialist III

OK i got it thanks for the image you need to enable calcCondlike this

addons: {
uses: "addons",
items: {
dataHandling: {
uses: "dataHandling",
items: {
calcCond: {
uses: "calcCond"
}
}
}
}
}

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

robinrouleur
Partner - Creator
Partner - Creator
Author

Thx Ajay, that did the trick, much appreciated!

Robin