Hi experts,
I was trying to access data from catalog database and to show it in a table of an UI5 web page.
I created the file services_v_user_list.xsodata under the folder services to connect with database.
service { "NEO_**********"."V_CLIENT_LIST" as "CLIENT_LIST" key ("CLIENTID"); }
"V_CLIENT_LIST" is not empty.
In the file main.view.js, I created the table and use oModel to show data in the table.
var oModel = new sap.ui.model.odata.v2.ODataModel("services/services_v_user_list.xsodata"); table.setModel(oModel); table.bindItems("/CLIENT_LIST");
While in the UI5 web page, the table is empty with no data.
Image may be NSFW.
Clik here to view.
Is there something wrong with the code?
Thanks in advance.
Best regards,
Ziqian