Thread: Insertion Alert Messages
08-23-04, 13:28 #1Registered User
- Join Date
- Jul 2004
Unanswered: Insertion Alert Messages
My project has many forms, and one of is to create a user account which I used "create_record" regir.
Well, everything is going fine in inserting the record, but the problem is in the alert messages that shouws after
clicking the insert button. 1st alert message is asking if I would like to save the changes I made. 2nd one is telling me that
one transaction has been made. So I used :
YSTEM.MESSAGE_LEVEL := 0;
YSTEM.MESSAGE_LEVEL := 5;
but it didn't prevents the messages from showing up.
Ok the insertion goes fine but I don't want my customer to see these aler messages.
Is there anything I can do to prevent these alerts from showing up?
08-24-04, 02:58 #2Lost Boy
Provided Answers: 4
- Join Date
- Jan 2004
- Croatia, Europe
What does "Insert button" do? Saves changes (that is, commits data you've written into your form fields), or creates a new record?
First message seems to be result of a "create_record" or similar procedure on a database block whose field(s) have already been populated with some initial data in a PRE-BLOCK or similar trigger.
Therefore, issuing "create_record" (for example) wants to first) commit pre-populated data into the database, second) create a new record.
The second message seems OK to me ... why wouldn't you want to know that an account has been created properly? What if creation fails but you don't receive a message about it?
However: did you use :system.message_level in that order? If you want to prevent messages, you have to set message level to a higher level than the one your message has. Therefore, try with
:system.message_level := 5;
:system.message_level := 0;