cancel
Showing results for 
Search instead for 
Did you mean: 

getJSON in MII 15

raj44
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

raj44
Participant
0 Kudos

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

Thanks for you inputs

Regards

Rajeev

Answers (2)

Answers (2)

swaroop_anasane
Active Contributor
0 Kudos

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

raj44
Participant
0 Kudos

Hi Swaroop,

I'm using persistent mdo to fetch the data. About the perf. issue, loading the webpage with MDO takes a longer time say 5-6 secs more than the page which involves sql tables...

Thanks

Rajeev

swaroop_anasane
Active Contributor
0 Kudos

Hi Rajeev,

Haven't noticeed any such behaviour. Request you to please share the logic.

Thanks,

Swaroop

Private_Member_14935
Active Participant
0 Kudos

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

raj44
Participant
0 Kudos

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