on 08-18-2016 9:09 AM
I have a sap.m.Input that opens a sap.m.SelectDialog, passing a search string as so:
valueHelpRequest: function () {
oSelectDialog1.open(sap.ui.getCore().getElementById("SyncSiteDataSite1").getValue());
}
when the search dialog opens, the search string is populated with the content of the Input, as I would expect, but the search doesn't actually fire - it is necessary to click the search icon to filter the items in the SelectDialog. Is this by design or is something broken ?
Either way how can I force the filter to be applied as soon as the SelectDialog opens ?
The pictures show the SelectDialog after it has opened and after the search button is pressed. "iel" is the string from the Input.
Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sai,
It certainly will !
It was the fireSearch I was missing:
valueHelpRequest: function () {
oSelectDialog2.open(sap.ui.getCore().getElementById("SyncSiteDataSite2").getValue());
var oDialogDOM = oSelectDialog2.$();
var oSearchFieldDOM = oDialogDOM.find('.sapMSF');
var oSFID = oSearchFieldDOM[0].id;
var oSearchField = sap.ui.getCore().byId(oSFID);
oSearchField.fireSearch();
}
It works now . Thanks !
Hi,
you can use LiveChange on Search - JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.SearchField
This event is fired when the value of the search field is changed by a user.
Thanks,
Chandan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.