cancel
Showing results for 
Search instead for 
Did you mean: 

I5Grid Error in passing parameters

mashfaq
Contributor
0 Kudos

Dear Guru,

My query parameter is passing in I5Grid. system take default parameters mapped in XacuteQuery. coding is given below:

var Getdata = new sap.ui.commons.Button({

text:'Get Data',

press:function(){

var addProps = '{'+

  '"DisplayTemplate":"NRC_2010/Production/UI/ProductionValuesGridtestUI5",'+

  '"QueryTemplate":"NRC_2010/Production/UI/XGetProductionValuestest",'+

  '"Content-Type":"image/png"'+

  '}';

var ProductionGrid = new com.sap.xmii.grid.init.i5Grid('NRC_2010/Production/UI/ProductionValuesGridtestUI5','NRC_2010/Production/UI/XGetProductionValuestest',addProps);

ProductionGrid.getQueryObject().setParameter("Param.1", "LS");

ProductionGrid.getQueryObject().setParameter("Param.2", "2014-08-10T00:00:00");

ProductionGrid.getQueryObject().setParameter("Param.3", "2014-08-11T00:00:00");

ProductionGrid.draw('ProductionGrid');

ProductionGrid.update(true);

   }

});

    Getdata.placeAt('Getdata');

Thanks

Muhammad Ashfaq

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_14935
Active Participant
0 Kudos

Hi Muhammad,

Which SP of MII 14.0 are you using...? The syntax that you have used is right.. but I think in 14.0 SP4 overriding query parameters doesn't work.

Thanks and Best Regards,

Ria

mashfaq
Contributor
0 Kudos

Dear Elzabeth,

Thanks for help. I am using SAP MII 14.0 SP4 Patch 5

So what i have to do now any other way or work around.

Thanks

Muhammad Ashfaq

Private_Member_14935
Active Participant
0 Kudos

Hi Muhammad,

I tried overriding "RowCount" parameter of query object and works for me with MII 14.0 SP5 Patch10.

You too can try:

ProductionGrid.getQueryObject().setParameter('RowCount',5);

If this doesn't work with your version(14.0 SP4 Patch5), then please try upgrading to the latest SP in SMP and let me know.

Thanks and Best Regards,

Ria Ninan

mashfaq
Contributor
0 Kudos

Dear Ria,

I have update my SAP MII 14.0 SP4 Patch5 to 14.0 SP4  Patch10 & I have implemented below given SAP Note

2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called


Thanks


Muhammad Ashfaq

Private_Member_14935
Active Participant
0 Kudos

Hi Muhammad,

Thanks for the update.

Best Regards,

Ria

Answers (0)