Qlik Community

QlikView Extensions

Discussion Board for collaboration on QlikView Extensions.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
litalrok7
New 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
New Contributor III

Re: select multiple Fields in Qlik Sense Mashup

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
New Contributor III

Re: select multiple Fields in Qlik Sense Mashup

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.

Community Browser