Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
agni_gold
Specialist III
Specialist III

SelectValues method is not working in my Mashup

Hello Friends, 

 

I am creating one mashup, where I am trying to create multi-select dropdown after fetching data from applist method. 

After creating dropdown, when i am trying to apply multiple filters using SelectValues method, it is not happening, it is not giving me any error but nothing is happening, 

below is my code : 

$( "#Filter1_Button" ).click( function () {
var str = [];
$('#Filter1 :selected').each(function(i, selectedElement) {
// str[i] = "{qText:'" + $(selectedElement).val() + "'}";
// str[i] = '"' + $(selectedElement).val() + '"';
str[i] = $(selectedElement).val();
});
// var fil = "["+str.join()+"]";
 var fil = str.join();

console.log(fil);
app1.field('Labels').selectValues([fil],true, true);
});

 

when I am hardcoding values in the select values method, it is working.

 

please help 

 

Labels (1)
0 Replies