I have a form with outstanding changes, but I don't want to save them or
have forms asking me to save them. In the form I have made two triggers:
key-exit en when-window-closed. Both have the same code:
exit_form(no_validate). Works fine. But if I start another form with
new_form, then forms starts asking me 'Do you want to save the changes
you have made?'. Does anybody know which trigger I can use to prevent
this?
Thanks,
Ton
Just before you issue the New_Form command, do this:
CLEAR_FORM(NO_VALIDATE,FULL_ROLLBACK);
In article <382890A8...@worldonline.nl>,
Ton Schalke <tsch...@worldonline.nl> wrote:
> Hi all,
>
> I have a form with outstanding changes, but I don't want to save them
or
> have forms asking me to save them. In the form I have made two
triggers:
> key-exit en when-window-closed. Both have the same code:
> exit_form(no_validate). Works fine. But if I start another form with
> new_form, then forms starts asking me 'Do you want to save the changes
> you have made?'. Does anybody know which trigger I can use to prevent
> this?
>
> Thanks,
> Ton
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Steve Cosner wrote:
>
> Ton Schalke wrote:
> > I have a form with outstanding changes, but I don't want to save them or
> > have forms asking me to save them. In the form I have made two triggers:
> > key-exit en when-window-closed. Both have the same code:
> > exit_form(no_validate). Works fine. But if I start another form with
> > new_form, then forms starts asking me 'Do you want to save the changes
> > you have made?'. Does anybody know which trigger I can use to prevent
> > this?
>
Since the new_form is in your menu, add the Clear_Form to the menu's Command
Text, prior to the New_Form.
This would, of course, apply to all programs that share the menu. Without
thinking too much about it, you could do something like:
IF Get_Application_Property(CURRENT_FORM_NAME) = 'yourform'
THEN
Clear_Form(----);
END IF;
New_Form('anotherform');
Rather than hard-code the form name in your menu, a more generic method
would be to use a Global, which you could set in a When-New-Form-Instance
and then test in your menu.
Ton Schalke wrote in message <3829AD71...@worldonline.nl>...