SAP UI5表filterProperty建议

时间:2018-03-08 07:21:31

标签: sapui5 hana

same like image.我是SAP UI5的新手。我创建了一个有2列的表,并应用了排序和过滤属性都工作正常。但现在我想要一些建议列表应该出现,而用户在过滤器框中输入。请帮助下面是我的代码。

var oTable = new sap.ui.table.Table({ editable : false, width : "auto", visibleRowCount : 6 }); oTable.addColumn(new sap.ui.table.Column({ label : new sap.ui.commons.Label({ text : "Product Name" }), template : new sap.ui.commons.TextField().bindProperty("value", "PNAME"), enabled : false, editable : false, sortProperty : "PNAME", filterProperty : "PNAME", display : "none", width : "auto" })); oTable.addColumn(new sap.ui.table.Column({ label : new sap.ui.commons.Label({ text : "Region Name" }), template : new sap.ui.commons.TextField().bindProperty("value", "RNAME"), enabled : false, editable : false, sortProperty : "RNAME", filterProperty : "RNAME", display : "none", width : "auto" }));

1 个答案:

答案 0 :(得分:0)

TextField自1.38起不推荐使用。而是使用sap.m.Input控件。 输入控件具有建议功能。