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

Supplying data to the bar graph using JSON Model

Hi All,

We have a bar graph in SAPUI5; We have a xsjs service which provides the data in json format.

I am trying to populate the model using code snippet as below:

var oModel = new sap.ui.model.json.JSONModel({

businessData :[// "http://172.22.0.168:8000/osmosis/Sales_json.xsjs?sorg='INSO'&div='02'&dchan='IN'"]

});

Bar graph does not show up. Is there a way to make the Bar Graph consume the data from this xsjs service?

Regards,

Ganga

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 27, 2013 at 02:50 AM

    Hi Ganga,

    It's a bit hard to be certain from your question, but try..

    var oModel = new sap.ui.model.json.JSONModel("http://172.22.0.168:8000/osmosis/Sales_json.xsjs?sorg='INSO'&div='02'&dchan='IN'");

    Cheers

    Graham Robbo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 26, 2013 at 06:29 PM

    Hi Ganga,

    how the json responce looks like?

    Best Regards

    Konstantin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2016 at 07:51 AM

    This message was moderated.

    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.