Qlik Community

QlikView Integrations

Discussion Board for collaboration on QlikView Integration.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
litalrok7
Contributor III
Contributor III

select multiple Fields in Qlik Sense Mashup

Hi All,

I'm trying to build a trigger in mashup which select different values in fields

when i try to select more then one field it ignores all of selections.


app.clearAll();

app.field('Priority').selectValues([{qText: "High"},{qText:"Low"}], true, true);

app.field('Cases Open/Closed').selectValues([{qText: "Closed Cases"}], true, true);

each one of them works separately but not together.

Help will be appreciated,

Lital

2 Replies
diogoguilhen
Contributor III
Contributor III

i'm trying to get this too..... anyone could help us?

Im reach here:

var formatter = new Intl.DateTimeFormat("pt-BR", { month: "short" }),

  month1 = formatter.format(new Date()) ;

  var monthNames = ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'];

  var posicao = monthNames.indexOf(month1);

  var mesesSelecionados = monthNames.slice(posicao, 12);

 

  var mesesSelecionadosJson = {};

  var arrayteste=[];

  for ( i =0 ; i< mesesSelecionados.length; i++ ){

  var teste = mesesSelecionados.toString();

  mesesSelecionadosJson  =  JSON.stringify({ 'Mes':   mesesSelecionados   } );

  mesesSelecionadosJson = mesesSelecionadosJson.toString().replace(/"/g,"");

  arrayteste.push(mesesSelecionadosJson );

   console.log([arrayteste.toString()]);

  console.log(mesesSelecionadosJson );

  };

diogoguilhen
Contributor III
Contributor III

I GOT IT!

Follow :

var formatter = new Intl.DateTimeFormat("pt-BR", { month: "short" }),

  month1 = formatter.format(new Date()) ;

  var monthNames = ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'];

  var posicao = monthNames.indexOf(month1);

  var mesesSelecionados = monthNames.slice(posicao, 12);

app1.field('[messtr]').selectValues( mesesSelecionados, true );

I just use a simple array!!!!! and select another dimension.