Sapui5 输入:getSelectedKey不是函数

Sapui5 输入:getSelectedKey不是函数,sapui5,Sapui5,我当前在使用带有建议项的sap.m.Input时出错 当我点击建议列表时: 控制器 ch:function(){ var过滤器=[]; var TBLot=sap.ui.getCore().byId(“idTableLot”); var item=sap.ui.getCore().byId(“prd”).getSelectedKey(); var filterL=新过滤器(“DCI”,FilterOperator.EQ,item.toUpperCase()); var filterWhs=新过滤

我当前在使用带有建议项的
sap.m.Input
时出错 当我点击建议列表时:

控制器

ch:function(){
var过滤器=[];
var TBLot=sap.ui.getCore().byId(“idTableLot”);
var item=sap.ui.getCore().byId(“prd”).getSelectedKey();
var filterL=新过滤器(“DCI”,FilterOperator.EQ,item.toUpperCase());
var filterWhs=新过滤器(“Magasin”,FilterOperator.EQ,GlobalWarehouse);
过滤器。推送(过滤器);
过滤器。推送(过滤器);
// ...
},
看法

var oitemplatep=new sap.ui.core.ListItem({
键:“{ItemName}”,
附加文本:“{U_CMC_RP_CDC}”,
文本:“{ItemName}”
});
新sap.m.Input({
id:“珠三角”,
自动完成:正确,
建议:没错,
EnableSuggestions突出显示:正确,
建议项目:{
路径:“/itm”,
模板:oitemplatep
},
更改:[oController.ch,oController]
});

您必须使用旧版本的UI5。方法
getSelectedKey
在1.44中介绍。要查看应用程序运行的UI5版本,请按Ctrl+Shift+Left Alt+P。您必须使用旧版本的UI5。方法
getSelectedKey
在1.44中介绍。要查看应用程序运行的UI5版本,请按Ctrl+Shift+Left Alt+P