cancel
Showing results for 
Search instead for 
Did you mean: 

How to get range from sap.m.multiinput token object

onur_sara
Participant
0 Kudos
1,411

Hi All ,

I have a multiinput field which is calling  a valuehelpdialog to fill inside it.  I also can fill multiinput manually by addValidator function below .


oMatnr.addValidator(function(args){

  var text = args.text;

  return new sap.m.Token({key: text, text: "="+text}).data("range", { "exclude": false, "operation": sap.ui.model.FilterOperator.EQ, "keyField": "Matnr", "value1": text});

  });

I can access text and key property of Tokens , but I also need to access Sign,Option,Low,High properties of range . Because user can be add ranges from valuehelpdialog as well .

So my question is how I can take range from tokens of multiinput or valuhelpdialog ?

Best Regards,

Onur

Accepted Solutions (1)

Accepted Solutions (1)

onur_sara
Participant
0 Kudos

Hi All,

I found the solution , it is possible to get range of  Token with this code below .


var range = oMultiinputField.getTokens()[i].data().range;

Best Regards,

Onur

Answers (0)