Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
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 );
};
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.
Hi!
Did anyone find a good solution for this issue? I have run in to to the same problem now, many years later.
I'm working on an extension that will let the users make any number of selections (as many fields and values in those fields as they want) and send those selections to another app. To do this I have a for-loop where I try to loop through each of the current selections in the app and using the selectValues function to make the selections in my target app. But this does not seem to be working as the newer selections seem to overwrite the previous ones even though they are not in the same Field.
Any ideas?
Thanks!