Idea Summary
When dealing with APEX Collections and standard components (like Forms and Interactive Grids), DB operations have to be manually coded always.
If Oracle APEX could manage automatically the insert/update/delete operations on APEX Collection without manual coding, would speed some things up.
Use Case
A collection must be used to validate and store temporary data before inserting on definitive tables.
A page is created with an Interactive grid that has the following SQL:
“select collection_name, seq_id, c001, c002, c003 from apex_collections where collection_name = ‘DEMO_DATA’”
The edition is enabled on IG, and Automatic Row Process is created, and Target Type is set by default to “Region Source”.
There would be no need to change that, because APEX would detect automatically the collection and would use the APIs to manage collection data.
Preferred Solution (Optional)
Maybe new “Target Type” option for the collection.
For existing “Region source” type, I guess a possible (but not elegant) solution is a trigger on the APEX_COLLECTIONS view for insert, update and delete, invoking the correspondant APIs calls to APEX_COLLECTION package.