cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MII 12.2 clear iGrid

Former Member
0 Kudos

Hi all

How to clear an iGrid by just clicking on the button

Regards

Lucas

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Lucas,

Best to my knowledge, there is no specific applet method available for clearing an iGrid.

Way out here is to write a function for clearing iGrid by either setting the Query template for the grid as blank and refresh it, or if your query template accepts input parameters, then refresh the grid without passing any input parameters.

And it would be really great to know if someone knows any specific applet method for clearing an iGrid.

Thanks & Regards,

Anuj

Former Member
0 Kudos

Hi Anuj,

I also could not find the correct applet method of clearing the iGrid

I just passed an empty parameter and it cleared,. I thought there might be an applet method for doing this

    

      function ClearReactors()
      {

                    var FilterReactors = document.AppReactorsToCopyGrid;
                    var  FilterReactorsQryobj =FilterReactors.getQueryObject(); //to         
         FilterReactorsQryobj.setParam(1," ");           
                   AppReactorsToCopyGrid.refresh();


      }

Answers (1)

Answers (1)

jcgood25
Active Contributor
0 Kudos

To keep things entirely on the client side you could use the deleteRow method (http://help.sap.com/saphelp_mii122/helpdata/en/4c/d57bccf29560c6e10000000a15822d/frameset.htm) and this would require a loop, and just delete row #1 for the corresponding grid's rowcount.  You may also require an .updateGrid(false) at the end to force a repaint.

Purely cosmetic of course and doesn't do anything but 'erase' the cell content.