Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
BARC’s The BI Survey 19 makes it official. BI users love Qlik. GET REPORT
Partner
Partner

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"
        }
    }
},
1 Solution

Accepted Solutions
ajaykakkar93
Valued Contributor

Re: Extension addon for calculation condition with expression message

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"
}
}
}
}
}

View solution in original post

4 Replies
ajaykakkar93
Valued Contributor

Re: Extension addon for calculation condition with expression message

Hi,

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

dataHandling.gif

Regards,

Ajay Kakkar

Highlighted
Partner
Partner

Re: Extension addon for calculation condition with expression message

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
Valued Contributor

Re: Extension addon for calculation condition with expression message

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"
}
}
}
}
}

View solution in original post

Partner
Partner

Re: Extension addon for calculation condition with expression message

Thx Ajay, that did the trick, much appreciated!

Robin