Read Only options for Interactive Grids (IG).
Dynamically setting Interactive Grids columns to Read Only (or Disabled) can cause some cell values to become null when submitting the IG.
In the examples below, I have tried to replicate this without actually saving the changed data - I would like my DEPT table to stay unchanged for other pages :-) Also I have used "1 = 1" as the "dynamic" part, but you get the idea.
I have added a Debug field to all the IGs, which are filled with the column values of all modified rows, during the Submit.
The DEPTNO and DNAME columns are all Read Only in the examples below, using various methods. The LOC column can be edited and "saved" by using the Submit button for that IG.
IG-1 and IG-2 are there for reference only. All columns are disabled by default so no Submit option there. The columns do look different from the other IGs however, which is a shame, but that can be fixed with some CSS if you like.
IG-3 and IG-4 work fine, but of course the columns are not dynamically set to Disabled or Read Only.
You can see the problem in IG-5 and IG-6. If you change the value of only 1 row, it works fine. But if you change the value of 2 or more rows, only the last row is OK - for the other rows, the Read Only columns have become null.
IG-7 fixes the problem by using some JavaScript. Too bad JavaScript is needed here, but what can you do...
Info & inspiration: