Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Savewarn
Hi guys,
I have a bit of a quandry.. I have a databound form which I am trying to close after the Write event. I've been trying the "Standard" method of :
gfctrl = get_property(@window,'GOTFOCUS_CONTROL')
call send_event(gfctrl,'GOTFOCUS')
call set_property(@window,'SAVEWARN',0)
call end_window(@window)
I've also tried doing a post_event(@window,'CLOSE') instead of end_window.
Regardless, I'm still getting the "Would you like to save changes to the entry?" message, even though the record has been written.
I just want to end the window, period. Is there a workaround?
Thanks!
Michael
I have a bit of a quandry.. I have a databound form which I am trying to close after the Write event. I've been trying the "Standard" method of :
gfctrl = get_property(@window,'GOTFOCUS_CONTROL')
call send_event(gfctrl,'GOTFOCUS')
call set_property(@window,'SAVEWARN',0)
call end_window(@window)
I've also tried doing a post_event(@window,'CLOSE') instead of end_window.
Regardless, I'm still getting the "Would you like to save changes to the entry?" message, even though the record has been written.
I just want to end the window, period. Is there a workaround?
Thanks!
Michael
Comments
I also should have asked some additional questions:
The code is called from the Write script event handler. It occurs after the Forward_Event
Yes, the Clean Form flag is set
The Write occurs upon either a push button event or pressing F9 (menu event)