Skip to Content
0

sap.m.input - on selecting suggestion items

Oct 14, 2017 at 01:00 AM

89

avatar image

Hi,

I tried to display suggestion items by implementing livechange event to sap.m.input field by concatenating multiple field values to text property. It works fine as expected. But, on selecting one in the list of suggestion items, the complete text get's displayed in the input field, while i want only first word of the concatenated text to be displayed. Is it possible to achieve ? If yes, can you please point me some sample code to achieve it ?

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Iftah Peretz
Jan 05 at 12:13 PM
0

Hi,

A working example via JSfiddle/JS Bin etc. would have been helpful to get you to where you want and write the code suggestions. Even code snippets of some sort.

Based on what you have described, why not use other events to control that behavior like submit? Or change it to suggest and then use suggestionItemSelected?

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Thanks Iftah. We fixed it by using live change event by slicing the string that is selected.

0

Great. Please mark/update the correct answer and close the thread.

0

I posted this question some time back and it was with my previous project. I don't have the code to post. So, just closing the thread. thanks for your comments.

0