Is there some way to put up a message to the user when a required field is
null? Right now all it does is move the cursor to the field and that isn't
very friendly for our use. It totally ignores the when-validate-item trigger
code until there is a value in the field.
Thank you.
Be proactive. Make required fields a different background or promopt color. Then
they will know which ones must be filled in without having to be bothered with
error messages.
Daniel Morgan
When the cursor goes back to the null required field it is right next to the
left boundary of the field, which makes it hard to see. Since no error/info
msg comes up the user has to look around, instead of focusing directly on
the problem. If the buttons were turned on/off based on available actions
then this would be less of a problem, but that isn't how they want it.
"Daniel Morgan" <dmo...@exesolutions.com> wrote in message
news:3DC81093...@exesolutions.com...
IF l_msg_code = 'FRM-40202' THEN
l_current_item :=
NAME_IN('SYSTEM.CURRENT_BLOCK')||'.'||
NAME_IN('SYSTEM.CURRENT_ITEM');
DISPLAY_ITEM(l_current_item,'REQUIRED_ITEM');
SYNCHRONIZE;
DISPLAY_ITEM(l_current_item,
GET_ITEM_PROPERTY(l_current_item,
VISUAL_ATTRIBUTE));
END IF;
This test for a null value is made BEFORE any written code kicks in. One
way around your problem is to leave all fields as NULL ALLOWED and write
When-Validate-Items triggers and When-validate-record triggers to catch a
null value. This way you code the test and can produce whatever error you
like, over-riding the default message on the status bar.