on 02-11-2019 7:12 AM
without specifying column names in view how to get all the columns in a table using odata service
You can create columns dynamically with the help of ODataMetaModel. Take a look at this sample from the Demo Kit: https://ui5.sap.com/#/entity/sap.ui.table.Table/sample/sap.ui.table.sample.OData2/code
columns="{
path: 'meta>/dataServices/schema/[${namespace}===\'MYSAMPLE\']/entityType/[${name}===\'Product\']/property',
factory: '.columnFactory'
}"
In the factory function, the application should then return an instance of Column according to the controller code in the sample.
For more information about how to leverage ODataMetaModel, see the section Meta Model for OData V2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.