Skip to Content

SAPUI5 Table Shows data only on ABAP Server?

Hi everybody!

I m new to UI5 and oData Gateway.

I have created a simple UI5 application which consists of a Table. But the problem is that this table shows data only when I run the application on ABAP Server on other servers ie. Tomcat or Web App Preview in eclipse it doesn't work . I also tried this application with other open oData services but the table shows no result. Secondly the table show the data and after it continue to scroll down the data and there comes empty fields from above and data disappears to the down.

Please help me to solve this problem.

Table image.jpg (104.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jan 12, 2015 at 06:59 PM

    Hi Khaja,

    Do you provide the userid and password in the Odata model instance along with the url for the odata service url.

    something like this:

    var oModel = new sap.ui.model.odata.ODataModel(serviceUrl,false,"Username","Password");

    Hope this helps.

    Regards,

    Kedar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Khabir Ahmad Raja

      Read my post below, it's possible to setup a proxy so that you can run on local machine and access data via gateway.

      Regards,

      Jason

  • avatar image
    Former Member
    Jan 12, 2015 at 08:51 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Jan 14, 2015 at 03:13 PM

    I have solved the problem. Actually we have to add a prefix 'proxy' before oData URI string like.

    "proxy/https/sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV"

    If the application has to run on ABAP server then we can write a normal string like.

    "https://sapes1.sapdevcenter.com/sap/opu/odata/sap/ZCD204_EPM_DEMO_SRV"

    Some java scripts are conflicted each other. That was the reason my table was scrolling.

    I had more than one script running in my application.

    Add comment
    10|10000 characters needed characters exceeded