cancel
Showing results for 
Search instead for 
Did you mean: 

Passing Query Params using SAP UI5 in SAP MII

former_member186805
Participant
0 Kudos

Hello Experts,

I would like to understand how we can pass parameters to the Query Templates[ Xacute or SQL] using SAP UI5 MVC architecture in SAP MII ?

Your help would be highly appreciated.

Thanks,

Ayush

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ayush,

Just add the parameters in the URL like this:

/XMII/Illuminator?QueryTemplate=<Path of Query Object>&Param.1=value&Content-Type=text/xml

and then you can use this URL in the ajax call from your web page (controller of your view in your case).

This would basically use the GET method of http call.

For POST call, add the parameters in the body of the request.

Example using jQuery ajax function:

jQuery.ajax({

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

        type: 'POST',

        data:{Param.1:'value', Param.2:'value'},

        success: function(data)

        {

        }

});

Regards,

Rohit Negi.

former_member186805
Participant
0 Kudos

Hi Rohit,

Thanks, it works perfect. Essentially, i would like to know if you have any blog or documentation on more examples regarding the same .

That would help in understanding concepts more deeper.

Thanks,

Ayush

Former Member
0 Kudos

Hi Ayush,

Refer to these blogs for UI5 usage with MII:

Regards,

Rohit Negi

Answers (0)