If you run your APEX application - like a Form based on the EMP table - and test if you can change the value of Department to something else then the standard values of 10, 20, 30 or 40, you'll get a nice error message like this: But it isn't really nice, is it? So what do a lot of developers do? They create a validation (just) in order to show a nicer, better worded, error message like "This is not a valid department". And what you then just did is writing code twice : Once in the database as a (foreign key) check constraint and once as a sql statement in your validation. And we all know : writing code twice is usually not a good idea - and executing the same query twice is not enhancing your performance! So how can we transform that ugly error message into something nice? By combining two APEX features: the Error Handling Function and the Text Messages! Start with copying the example of an Error Handling Function from the APEX documentation. Create this function ...
Comments
Tobias
Denes Kubicek
Looks really nice! Congrats!
Martin.
Bij AMIS weten we wat het is om Oracle Ace te worden.
Rob van de Star
Congratulations on your achievement!
Well, I liked your blog and i'm interested in having my blog's text link in your blog roll.
Please let me know your interest in this association and then we can move towards next step.
Sincerely,
Webmaster
Adamsinfo.com
seo@apnicsolutions.com