Skip to Content
avatar image
Former Member

SAP MII 12.2 clear iGrid

Hi all

How to clear an iGrid by just clicking on the button

Regards

Lucas

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 12, 2013 at 08:29 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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();


            }

  • Aug 12, 2013 at 02:26 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded