Saturday, September 8, 2012

Oracle Apex: How to disable entire Page (all components)?

Consider below mentioned scenario.

For particular user if you want to disable components present on page so user can't edit any information. To complete mentioned requirement we are going to use JavaScript.

For example: Apart from Tab and Instruction regions we are going to disable all components.





Assign static ID to instruction region



Add below mentioned JavaScript into Html Header Section.



  Enter code into HTML Header and then click Apply Changes.

 Note: You can disable complete page by  modifying top property value to 0.

blurDiv.style.cssText = "position:absolute; top:0; right:0; width:" + screen.width + "px; height:" + screen.height + "px; background-color: #000000; opacity:0.2; filter:alpha(opacity=20)";

Result: