我写这部分是为了用选择控制器绑定OData信息:
var countrItems = new sap.ui.core.ListItem();
countrItems.bindProperty("key", "Land1");
countrItems.bindProperty("text", "Landx");
var CountrSelect = this.byId("CountrySelect");
CountrSelect.setModel(oModelTriptab);
CountrSelect.bindItems("/Countries", countrItems);
Run Code Online (Sandbox Code Playgroud)
我想在绑定完成后执行一个动作(我想选择一些可以动态改变的默认值).
sapui5 ×1