on ‎2018 Sep 05 7:33 AM
Request clarification before answering.
Thanks Vaibhav and Jun for quick reply,
var view = this.getView();
view.setModel(this.getOwnerComponent().getModel('a'));
view.byId("LineItemsSmartTable").rebindTable();
on onInit method solved my problem.
Thank You
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
set default model of smart table to "a".
this.getView().byId("LineItemsSmartTable").setModel( <reference to model 'a'> );
Then tablebindingpath is just "entityset" and not "a>/entityset"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello I recently had the same issue. Specifically I have 2 smart tables in my app, one has responsive table -> using unnamed odata model, one has analytical table -> using another named odata model (with name "headerQuery"). This is what I had to do:
in XML view - not specifying neither entityset nor tableBindingPath

in controller e.g. at "onRouteMatched"

the key things (based on some debugging of inner code of SmartTable)
- the "named oData model" had to become "unnamed model" for the SmartTable - that's achieved on the first yellow line. Because code inside smart table is sometimes simply calling ...getModel()
- setEntitySet is called as well cause that actually triggers some initialization inside SmartTable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have same situation like two smart filters and smart tables need to be added in same view so how how can i added two entities with model name for smart table and smart filters.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think it should be no name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.