on 2020 Mar 05 9:46 AM
I think question is very related to this one: https://answers.sap.com/questions/11459025/how-to-call-function-import-from-sap-ui5-and-get-t.html. However I do not want to bind JSON but setup smart table entity set returned from the import function.
There are lots of possibilities in annotation modeler and there is function import. However I can not find documentation how to use it in smart components except how to setup default columns for smart table.
Unfortunately I couldn't find the solution with annotations so I created cache in the backend. There is now /CacheSet('here parameters used by the import function') bind to the SmartTable. When the Promise is resolved I do:
SmartTable.setTableBindingPath("/CacheSet('" + cacheId + "')/CacheProduct");
SmartTable.rebindTable(true);
So the procedure in short is:
So it is alternative solution for the function import just to have normal Entity Set in order to bind the SmartTable. I hope there is (there should be) easier solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.