Normal Topic record not saved warning. (Read 787 times)
Wilder
Member
*
Offline



Posts: 25
Joined: Jun 11th, 2015
record not saved warning.
Jul 7th, 2015 at 5:18pm
Print Post Print Post  
Have new application that I am working on and want to know is there is a way to stop the record not saved warning from coming up.
It may be the way I am calling up my forms.  some forms are called from other forms and brought up with retrieve command from "on form entry",  nothing on the form is changed but the command to leave the form brings up the record not saved warning. 

I know that this could be a problem about loosing data but I want to control the process when I know that not data has been changed.

I am new to Sesame and still learning the ins and outs of programming in Semame.   (Been programming in other languages since 1979) 
  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: record not saved warning.
Reply #1 - Jul 8th, 2015 at 1:22am
Print Post Print Post  
Have a look at NotifyForm() and FormNotifyForm().

Take note of number 9 below.

0 - Clear all flags
1 - Prohibit saving
2 - Allow save, prohibit record advance
3 - Allow save, prohibit record retreat
4 - Prohibit delete record
5 - Prohibit remove record from results
6 - Disallows the tab the form is on to be closed
7 - Disables Extend Mode
8 - Prohibit toggle between Form and Table View
9 - Disable the form's change flag
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
Wilder
Member
*
Offline



Posts: 25
Joined: Jun 11th, 2015
Re: record not saved warning.
Reply #2 - Jul 8th, 2015 at 3:42pm
Print Post Print Post  
Thanks
That helped.

I added a check to see if the primary fields in the form were blank before allowing the exit.

will get message if fields are not blank

Thanks again
Foye
  
Back to top
 
IP Logged