cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using MultiInput

mdixit_1401
Explorer
0 Likes
2,603

Hi Experts,

I want to use multiinput with the functionality that if i press enter a new token gets added . Also I need to bind it to odata so that if anything is already saved then that should flow while rendering and If user enter something new , that should also gets saved.

Examples which I have seen are not adding new token after pressing enter with data binding.

Can you please help me out?

Thanks,

Mansi

View Entire Topic
vijay_kumar49
Active Contributor
0 Likes

Please refer the example document. it may be useful document


<!DOCTYPE html>

<html>

<head>

<script src="src='/sapui5-internal/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>

  <meta charset="utf-8">

  <title>MultiInput</title>

  <script>

    var oInput = new sap.m.MultiInput({

  tokens : [

  new sap.m.Token({

  key : "1",

  text : "Token1"

  }),

  new sap.m.Token({

  key : "2",

  text : "Token2"

  }),

  new sap.m.Token({

  key : "3",

  text : "Token3"

  })

     ]

    });

    oInput.placeAt('content');

    </script>

</head>

<body class='sapUiBody'>

<div id='content'></div>

</body>

Kindly let me know if you need any more information