on 2023 Mar 28 9:03 AM
Hello experts,
There is an alternative in MDK to take the data and read the data from backend.
I was trying like this but didn't work. Have you any idea?
Thanks
const setData = () => { const oModel = new sap.ui.model.odata.ODataModel("myServiceURL"); oModel.read(`/Products?$top=${pageSize}&$skip=${num}`, null, null, true, (oData) => { const oODataJSONModel = new sap.ui.model.json.JSONModel(); oODataJSONModel.setData(oData); view.setModel(oODataJSONModel, "getData"); });
Request clarification before answering.
Hi Horatiu-Paul,
yes you can use the clientAPI.read method. Check out this example: https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/features/backen...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
18 | |
10 | |
7 | |
7 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.