Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 923

Re: how to read data from Multi input control

$
0
0

Thanks for the quick reply.

 

 

When i use the following code i got the tokens from the returned object.

 

var oMultiInput = this.getView().byId("multiInputID");

 

Able to show the tokens length.

 

oMultiInput.length;

 

But when i try to iterate using the following code. i am getting the following error for the method: oToken.getkey(). Can you let me know how to iterate this tokens to get the keys and text.

 

Uncaught TypeError: oToken.getkey is not a function

 

var oMultiInput = this.getView().byId("multiInputID");

           if(oMultiInput!=null){

               console.log(oMultiInput); 

               var oToken = oMultiInput.getTokens();

               if(oToken.length >0){

                   console.log(oToken.length);

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

                       var oKey= oToken.getkey();

                       console.log(i+":"+oKey);

                   }

               }

              

               

           }

 

Thanks


Viewing all articles
Browse latest Browse all 923

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>