I'm building a Master-detail form in Oracle Apex.
There should be only a limited number of detail records for each master record; upto 4 detail records.
I can build a database trigger to ensure this business rule, but those error messages aren't displayed nicely in Apex (or even on the same page).
Is there a way to build an Apex validation to count and limit the number of detail records on a master-detail form?