我正在使用TableSelectDialog控件,我也在进行一些搜索。为了获得livesearch上的搜索值,我使用 oControlEvent.getParameters.value 但是它返回我未定义,因为我在警告框中看到它。
任何想法为什么它给我未定义或任何其他方式我可以获得我在搜索字段中输入的值。
答案 0 :(得分:1)
这适用于oEvent.getParameters().value
。
答案 1 :(得分:0)
另一种想法,因为查找查询值的最常用方法是使用SeachField,因此我们使用
oEvent.getSource().getValue
在这里,您也可以类似地找到查询字符串:
oEvent.getSource()._oSearchField.getValue()
答案 2 :(得分:0)
在这里还可以添加其他答案:
onSearch: function(oControlEvent) {
oControlEvent.getParameters("value");
}
https://sapui5.hana.ondemand.com/#/api/sap.m.TableSelectDialog/events/search