I created a APEX application for a table to give user access to update records in the table. I used Interactive grid and added edit option in that. I have a Identity column SEQ_ID which is default to get next value in Database. So when i edit any column in APEX i am getting below error.
ORA-32796: cannot update a generated always identity column.
So instead of Region source in Interactive Grid's Processing option I changed that to PL/SQL Code and added an update statement so that i can exclude SEQ_ID column update from APEX. This resolved the above ORA error.
But one of my table has 220 column that should be made editable in APEX(i know this sounds weird but Yes) so when i wrote a Update Statement it is giving me an error as below.
Value too long by 4000 Characters.
Can any one help me how to resolve this issue.
Update statement is a simple as below
UPDATE TABLE
SET Col1 = :Col1
,Col2 = :Col2 .... ... ...
WHERE SEQ_ID = :SEQ_ID
Solution 1:
Revert back to using default IG Update/Inserts and right click on the IDENTITY column and click Delete:
Solution 2:
Create a Procedure and move your update/insert code into the procedure. You should be able to access the APEX_COLLECTIONS inside the procedure as they are a part of your session.