on 02-13-2019 1:59 PM
Hi, i'm trying to bind items in my fragment..
the table in my main view is like this...
_loadContent: function(context) {
let tbGenerations = this.getView().byId("tbGenerations");
let template = tbGenerations.getBindingInfo("items").template;
let path =
"gia_es_odata>/CONTROLE_TELA_PARAM(P_MANDT='" +
context.MANDT +
"',P_ORGSTR='" +
context.ORGSTR +
"',P_PERIODO='" +
context.PERIODO +
"',P_ANO='" +
context.ANO +
"')/Results";
return new Promise((resolve, reject) => {
tbGenerations.bindItems(path, template);
tbGenerations.getBinding("items").attachChange(() => {
resolve();
});
});
I want to do almost the same thing on the fragment.. how I do that?
_onHistory: function(context) {
...
}
Thank you .
Hi Carlos,
The controller will be the same for the fragment. Look at the official doc:
https://sapui5.hana.ondemand.com/#/topic/4da72985139b4b83b5f1c1e0c0d2ed5a
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.