Skip to Content
avatar image
Former Member

getJSON in MII 15

Hi Experts,

We would like to know whether JQuery and all its associated files comes by default in MII 15 SP03 or do we need to include those files separately?

We're fetching the data from a MDO and populating a datatable using getJSON function, but the table doesn't load with the data.

The getJSON works with MII14 SP0 (bootstrap.js), but not with MII 15 SP03.

Please advise.

Also, will MDOs cause any performance issue in GUIs like for instance page loading, data loading etc.

Thanks,

Rajeev

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 08, 2015 at 07:47 AM

    The issue was due to double quotes IN column date and XSLT. getJSON function is getting called now.

    Thanks for you inputs

    Regards

    Rajeev

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 07, 2015 at 05:51 PM

    Hi Rajeev,

    jQuery library comes by default in MII from 14.0 SP05 onwards as part of the SAP UI5 library which is loaded by bootstrap.js. Hence the jQuery function getJSON should work in MII 15 SP03 as well.

    Is there some error in the console on using the function, if so please share the same.

    If you could be more specific on the scenario with MDO in UI may be that will help answering your query. Other MII experts please share your views here.

    Thanks and Best Regards,

    Ria

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ria,

      I am displaying the data in the datatables from a persistent MDO via Servlet. The ILLUMINATOR servlet works fine, returning the data in aaData format. Now, when I use the getJSON function to retrieve the data, the function is not getting called, for eg:

      function test()

      {

      alert("test");

      $(document).ready(function() {

      alert("before getJson");

      alert("inside");

      var urlString  = "/XMII/CM/Default/testsvt.irpt";

      $.getJSON(urlString, function (output)

          {

                 alert("inside getJSON");

           });

      }

      All the alerts prior to getJSON get alerted, but the alert("inside getJSON") doesn't.

      Regards,

      Rajeev

  • Apr 08, 2015 at 05:14 AM

    Hi Rajeev,

    Ria has already answered first part of your question. The library comes with 15.0.

    About the MDO part, please understand it is as good as calling a query on the page. Now if it's a persistent MDO it would definitely not give you live data and as it reads data from MII DD, hardly any hit on performance side.

    If it's an on demand MDO, then obviously performance depends on the logic using which the MDO gets data.

    Hope it helps.

    Best Regards,

    Swaroop

    Add comment
    10|10000 characters needed characters exceeded