Home » Developer & Programmer » Forms » Replace system message with customized one
Replace system message with customized one [message #339513] Thu, 07 August 2008 13:11 Go to next message
setsuko
Messages: 3
Registered: August 2008
Junior Member
Hi. Is it possible to replace a system generated message "Do you want to save the changes you have made?" with a customized one in order to force users to press the commit button that we made with customized codes? Pre-commit trigger seems to be a place to identify whether this message pops up and "yes" is selected.

Thanks for your help in advance.
Sarah
Re: Replace system message with customized one [message #339680 is a reply to message #339513] Fri, 08 August 2008 02:17 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Why? If the user doesn't want to save their changes a stronger message probably won't help.

David
Re: Replace system message with customized one [message #339809 is a reply to message #339680] Fri, 08 August 2008 10:54 Go to previous messageGo to next message
setsuko
Messages: 3
Registered: August 2008
Junior Member
User wants to save the changes that's why he presses "Yes" on the system generated message. Here is the scenario:
1. user makes some changes on the form.
2. he forgets to press our customized "Commit Record" button.
3. he tries to query for another record.
4. before query is executed, the system message pops up saying "want to save the changes?".
5. he presses "Yes" because he wants to save.
This action 2) skipps all the customized codes written under the "Commit Record" button, which is a MUST step on this form.
Re: Replace system message with customized one [message #340159 is a reply to message #339809] Mon, 11 August 2008 13:06 Go to previous messageGo to next message
setsuko
Messages: 3
Registered: August 2008
Junior Member
Any suggestions will be appreciated!!! Thanks.
Re: Replace system message with customized one [message #340211 is a reply to message #339809] Tue, 12 August 2008 00:06 Go to previous message
sasipalarivattom
Messages: 121
Registered: June 2007
Location: Cochin ( INDIA )
Senior Member
Dear Sarah,

I Think,it is not a good way to write codes in a button that should be executed while saving a record. If you are doing so, you have to suppress the shortcut key for save and many more coding should be needed.

There is a better way i think.

Write those essential codes in KEY-COMMIT Trigger and in the button, just write
do_key('commit_form');


I think it will work for you.

Regards
Sasi...
Previous Topic: after execute_query , always ask to save the changes
Next Topic: background image
Goto Forum:
  


Current Time: Fri Sep 27 16:20:16 CDT 2024