Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
115
window.opener.igtbl_getActiveCell
posted

HI,

Sorry I'm looking for help about this issue:

I need to put values in an ActiveCell of my windows opener , from a pop-up.

Usually, I'm using objOtherGridRow.getCell(18).setValue(objLocalGridRow.getCell(0).getValue()) , where 18 is my cell to set new value.It's working, but, I need to set cell number dynamically , take active cell from opener windows and set it with new value from my pop-up windows.

I appreciate your help in advance !

 

  • 12679
    posted

    Hello,

    Below I will show you how to do something similar. The idea is that you have access to the opener window and you will be able to manipulate the grid which is placed in the "opener" window.  So let assume that you want to set a value in opener window and the function below is placed in your popup window.


        8    <script type="text/javascript">

        9           function getMaintWindow() {

       10              //Get a reference to the window

       11              //that has opended the popUp window.

       12               var mainWindow = window.opener;

       13               //Invoke the function

       14               //form the opener window

       15               //in our case just find the UltraWebGrid.

       16               var oGrid =

       17               mainWindow.igtbl_getGridById('UltraWebGrid1');

       18              // Use the API of the grd to manipulate it.

       19              //For example / I will hide it.

       20               oGrid.hide();

       21           }

       22     </script>

    I hope this helps you.

    Regards,