SapUI5 and Odata Service issue
<p>I am trying to consume Gateway OData Services in sapui5 app.</p>
<p>Metadata - <code>/sap/opu/odata/SAP/ZUSER_MANAGE_SRV/$metadata</code> as follows:
<a href="https://i.stack.imgur.com/SrStd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SrStd.png" alt="enter image description here" /></a></p>
<p>UserdataSet - <code>/sap/opu/odata/SAP/ZUSER_MANAGE_SRV/UserdataSet</code> as follows:
<a href="https://i.stack.imgur.com/DMuVB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DMuVB.png" alt="enter image description here" /></a></p>
<p><strong>MY CODE</strong></p>
<pre><code>var oModel = new sap.ui.model.odata.ODataModel(&quot;http://Host:Port/sap/opu/odata/SAP/ZUSER_MANAGE_SRV&quot;, false,&quot;USER&quot;,&quot;Password&quot;);
        
    var app = new sap.m.App(&quot;myApp&quot;,{});
        
    var oTable = new sap.m.Table(&quot;list1&quot;, {
                                growing: true,
                                growingThreshold: 200,
                                //mode: sap.m.ListMode.SingleSelect,
                                columns: [
                                    new sap.m.Column({
                                        header: new sap.m.Label({text: &quot;ID&quot;})
                                    }),
                                    new sap.m.Column({
                                        header: new sap.m.Label({text: &quot;First Name&quot;})
                                    }),
                                    new sap.m.Column({
                                        header: new sap.m.Label({text: &quot;Last Name&quot;})
                                    })
                                ],
                                items: {
                                    path: &quot;/UserdataSet&quot;,
                                    template: new sap.m.ColumnListItem({
                                        cells: [
                                            new sap.m.Input({value: &quot;{EUname}&quot;}),
                                            new sap.m.Input({value: &quot;{EFirstname}&quot;}),
                                            new sap.m.Input({value: &quot;{ELastname}&quot;})
                                        ]
                                    })
                                }
                            });    
    oTable.setModel(oModel);
    var page1 = new sap.m.Page(&quot;page1&quot;,{
        title: &quot;App&quot;,
        content: [oTable]
    });
    
    app.addPage(page1);
    
    return app;
</code></pre>
<p>Getting error as - <code>uncaught exception: [object Object]</code>.</p>
<p>Detailed Error:
<a href="https://i.stack.imgur.com/te4y2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/te4y2.png" alt="enter image description here" /></a></p>
<p>Please help, whats wrong with my code?</p>