Skip to Content
author's profile photo Former Member
Former Member

Can anyone Tell how to Copy the Remote Odata into the Program in web Ide??

Can anyone Tell how to Copy the Remote Odata into the Program in web Ide??

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Aug 20, 2016 at 06:24 PM

    what u are talking....

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 21, 2016 at 06:54 AM

    Hi Navya,

    try this code,

    var oModel = new sap.ui.model.odata.ODataModel("/sap/opu/odata/xxxxxx/");

    oModel.read("/urCollection", null, null, true, function(oData, oResponse) {

    var jsonModel = new sap.ui.model.json.JSONModel({ "data" : oData.results});

    //here i'm binding to table

    this.getView("tableid").setModel(jsonModel);

    }, function(oData, oResponse) {});

    its better to debugg and check data once.

    Thanks & Regards

    Venkat

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.