Skip to main content
Announcements
Meet the 2024 Qlik Luminaries and Partner Ambassadors! READ ON!
cancel
Showing results for 
Search instead for 
Did you mean: 
Christoph_Sch
Contributor
Contributor

SelectValues returns full Dataset instead of empty Dataset

Hello everyone,

I have a big Problem with my Qlik Sense App.

We are using a Javascript Frontend und are connecting to Qlik via enigma.js.

Now the problem is this, we have a given Table e.g.

column1column2column3
value1value3aaa
value2value4bbb
value1value5ccc

 

let's say I'm calling now:

app.getField('column3').then(function(field){
    field.selectValues('aaa');
})

when I would then make getLayout and everything, Qlik will return row #1 as expacted, but and here is the big problem now
when I would select a value, that is not in the column e.g.
app.getField('column3').then(function(field){
    field.selectValues('eee');
})
I get all the rows back.

How can I tell Qlik that instead, it should return an empty table?

thanks a lot in advance!
1 Reply
Christoph_Sch
Contributor
Contributor
Author

maybe a different approach:

Is there a way to check after field.selectValues('somevalue'); if something was selected?
So I could abort the creation.