cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a ajax to retrieve data ??

prityshaw
Explorer
0 Kudos

How can I call ajax for my ui5 screen dropdowns ??

onInit : function () {

$.ajax({

url: '/XMII/Illuminator?QueryTemplate=<Path of Query Object>&Content-Type=text/xml',

type: 'GET',

data:{},

success: function(data)

{

console.log(data);

}

});

},

I'm trying to fetch the data from my mdoQuery to ui5 screen dropdown in SAP MII

junwu
Active Contributor

then??????

Accepted Solutions (0)

Answers (1)

Answers (1)

prityshaw
Explorer
0 Kudos

Hi Jun Wu,

Actually, after running this query I did get the result.

can you suggest something on this to get it?

gichuhimd
Explorer
0 Kudos

If console.log(data) has the results of your query, load it through a JSONModel or odata then bind to your dropdown