Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
TKendrick20
Partner - Specialist
Partner - Specialist

Evaluate Expression as String in Extension

I am building a listbox extension and in the ,js file I'd like to evaluate an expression with something like app.Evaluate(*string*).

Specifically, I want to get the COUNT of the values in a field before a selection is made in the listbox.

Is this possible?

2 Replies
Stefan_Walther
Employee
Employee

Can you pls explain a bit more in detail what you are trying to achieve, maybe with some code samples?

TKendrick20
Partner - Specialist
Partner - Specialist
Author

Before I call this line in my listbox extension:

self.backendApi.selectValues(dim, [value], true);

I want to first check the calculation of an expression which, in layman's terms, says "If selecting the value that you just clicked on would make another expression < 1, do not allow the selection."

If (expression < 1)

     Make the selection

else

     Do not

The question is, how can I calculate the result of this expression on the fly?