Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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.
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.
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!