Let's follow up this discussion at the Neptune Community

(this forum will be kept in read-only mode)

Input Field Value Suggest

Hi,


How can I implement the Value suggest feature in Neptune as shown in the example below:

https://sapui5.netweaver.ondemand.com/sdk/explored.html#/sample/sap.m.sample.InputSuggestionsDynamic/preview


Looking at the source code they bind the following:

suggestionItems="{/ProductCollection}"


but I am not sure how to do that in Neptune.


Can you please provide an exmple.


Thanks,


Regards,


Radek


Hi


Look at the documentation of our sap.m.Select. It describes how easy it is to achieve value list into UI5 components. It's all about binding to the right data in the application class.

http://support.neptune-software.com/solution/articles/131283-select


Regards

Ole Andre 


Hi Ole-André,


Thank you for your answer but I am trying to use sap.m.Input http://support.neptune-software.com/support/solutions/articles/131238-input rather than sap.m.Select and would like to show the suggestions to the user when he starts typing. Would you be able to provide me with an example on how to achieve it?

  

Regards,


Radek

Hi Radek


The autocomplete on a mobile phone is sometimes a struggle with the form factor, keyboard covering 50% of the screen, placement of input field at the top of the screen etc. 


If you use an Input field, the best way to achieve this is to set showValueHelp = true, and on the valueHelpRequest I suggest to open a SelectDialog or SelectTable. Will work smooth on a mobile device.


Regards

Ole Andre 

Login or Signup to post a comment