Skip to Content

Add suggestion within control


I've this following example and one of the autocomplite event is suggest & value and I want to add the code of it inside the new control and not to put

it in the constructor , how can I do that ?

I mean instead of using value like following call the value method inside the control and not in the constructor it like following

var aC = new sap.ui.commons.AutoComplete({ maxPopupItems: 15, displaySecondaryValues: true, value: { path: "/path", mode: sap.ui.model.BindingMode.OneWay, formatter: function(path) { .....


JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.commons.AutoComplete

JS Bin - Collaborative JavaScript Debugging

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 15, 2015 at 03:29 PM

    not in constructor but insde? hm, create another method and do it there?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.