on 07-14-2020 6:54 AM
I have designed a simple Fiori Element - Fiori App with Search Enabled List Report and object page.
The list records are really small and i want the records to be auto populated on very first time while launching the app.
I don't want to click the "Go" button to populate the values first time.
I found some answers where in the web ide- i changed the property enableAutoBinding: true of the smart table but still it is not working.
Hello Siva ,
Below piece of code worked for me,
Best Regards
Prajna
onInit: function () {
var oModel = this.getOwnerComponent().getModel();
this.getView().setModel(oModel);
var oSmartTable = this.getView().byId("listReport");
var oSmartFilterBar = this.getView().byId("listReportFilter");
//For live mode
var liveMode = oSmartFilterBar.getLiveMode();
if (!liveMode) {
oSmartFilterBar.setLiveMode(true);
}
oModel.getMetaModel().loaded().then(function () {
oSmartTable.rebindTable();
});
},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
68 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.