Note that there are some explanatory texts on larger screens.

plurals
  1. POExtJS: Second Modal Window causing error: Uncaught TypeError: Cannot read property 'addCls' of null
    primarykey
    data
    text
    <p>I am getting the error: "Uncaught TypeError: Cannot read property 'addCls' of null" in the following scenario.</p> <p>I have a requirement of two modal windows. The first modal window has a Grid. When I double click on the Grid in the first modal window, I should open a second modal window. Below is the code I used:</p> <pre><code> saleOrderEmployeeGrid.on('celldblclick', function(tableview, td, cellIndex, record, tr, rowIndex, e, eOpts){ loadActivityWindow(); }); } function loadActivityWindow() { jobSlotActivityWin = new Ext.Window({ id :'jobSlotActivityWinId', modal : true, layout : 'fit', width : 900, height : 500, closeAction :'destroy', plain : true, model : true, stateful : false, title :'Create Job Slot', items : [soActivityPanel], buttons : [{ text : 'Close', handler : function(){ jobSlotActivityWin.destroy(); } } ] }); jobSlotActivityWin.show(); Ext.WindowManager.register (createJobSlotWin); // createJobSlotWin is the first modal window Ext.WindowManager.register(jobSlotActivityWin); // jobSlotActivityWin is the second modal window created above Ext.WindowManager.bringToFront ('jobSlotActivityWinId'); } </code></pre> <p>So, when I double click on the saleOrderEmployeeGrid, I see the second modal window fine. Then I close the second modal window and double click on the grid again on the first modal window.</p> <p>This now doesn't bring up the second modal window. It completely goes masked and blank in the background of first modal window and I see the below error in the JavaScript Console: Uncaught TypeError: Cannot read property 'addCls' of null</p> <p>To be more precise, the error seems to be coming out of jobSlotActivityWin.show() as my debug logs failed at that point.</p> <p>Anyone faced this before and can help me?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload