if (typeof isc !== "undefined" && isc.Canvas && isc.Canvas._BIG_Z_INDEX && isc.Canvas._nextZIndex){ var open_test_window = setInterval(() => { let max_index = isc.Canvas._BIG_Z_INDEX; let next_index = isc.Canvas._nextZIndex; if (max_index > next_index){ OB.Layout.ViewManager.openView('_143'); console.log("_BIG_Z_INDEX:" + max_index + "\t_nextZIndex:" + next_index); }else{ clearTimeout(open_test_window); console.log("nextZIndex is bigger than _BIG_Z_INDEX, popup grey screen issue should be reproducible now.") } }, 2000) }else{ console.log("This is not an Openbravo environment") }