Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
BenjaminGroff
Contributor III
Contributor III

Qlik Sense extension custom string input "expression" property not working correctly

Hey all,

I'm coming across a bug regarding the string input box in the properties panel on an extension I am creating. I am making a custom string input that I want to always evaluate the expression that it is given but it will only evaluate if there is an "=" sign before the expression.

test3: {
   type: "string",
   label: "Test 3",
   ref :"test3",
   expression: "always"
},

Per the documentation Qlik provides here it says that any expression put into the input box i have shown above will be evaluated as an expression and any with the 'expression: "optional"' attribute will only be evaluated if there is an "=" sign before it.

This is the behavior that is not acting correctly for me because it will only evaluate if there is an "=" sign either way.

In the pictured example below you can see I have an extension and in the properties panel I only defined 3 properties all of which are custom string inputs. I left the first "expression" attribute blank and put "optional" for the second and "always" for the third.

BenjaminGroff_2-1657565807028.png

BenjaminGroff_3-1657565861275.png

As you can see from the console logs all three inputs are evaluating the same even though the instance with the "always" attribute should be evaluated as an expression equaling "-1" as seen in the screenshot below where I add the "=" sign.

BenjaminGroff_4-1657566135397.png

If anyone can shed some insight into why it is working this way or what I might be doing wrong it would be greatly appreciated.

Thank you ahead of time!

 

 

Labels (5)
1 Reply
ajaykakkar93
Specialist III
Specialist III

hi,

If you use expression: "optional"

then = is required to evaluate  

expression: "always" will always try to evaluate 

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