我在对话框中有一个树表,并且正在对话框的afterOpen
事件中为树表设置过滤器。
但是过滤器没有分配给TreeTable绑定的过滤器数组。 如何解决这个问题
afterOpen: function () {
var oTableBinding = oFrag.byId("dFragment", "TreeTable").getBinding("rows");
oTableBinding.filter([new sap.ui.model.Filter("RECORD_ID", "EQ", $.sap.RecordId)]);
}
没有任何错误。 Binding对象的过滤器数组为空。