Disable update for a particular column in Oracle APEX Interactive Grid



This blog explains how to disable update for a particular column in Interactive Grid using the Read Only property of a column

Should we use JavaScript to achieve this? The answer is, NO!!! 

Follow the below steps to achieve this

1) Create an Interactive Grid

2) Select the column that has to be made read only when trying to update. 

  • In this example, the ROLE Column has is made read only when trying to update

3) Scroll down to the Read Only property of the column and do the changes as shown in the below screenshot.



















Note:
  • It is not mandatory to use 1=1. Any expression can be written. The column will be disabled if the given expression is satisfied.
  • Its is also not mandatory to use Type -> Expression. Other Types can also be used based in the requirement.

4) Save and Run the page.



Click here for DEMO

Happy CODING!!!

Thank you :)

Comments

Popular posts from this blog

Allow Only Number/Decimal values In a Number/Text Field Using JavaScript in Oracle APEX

Display and Edit CLOB Content in Oracle APEX

Copy the value of an Item to Clipboard in Oracle APEX