Save Problem

I have created one form. In that “Save” button with the value as @command([Filesave]) and “Close” button with the value as @command([FileClosewindow]) and “SaveOptions” reserved field also there.The problem is that i filled all the values and click on “Save” button, the document is saved. when i click on cross mark to close the window, it’s asking “Do u want save ur changes” again.

If i click on “close” button it’s not asking.

What could be the problem? Anybody can help me?

Subject: Save Problem

To do a save and close, Don’t use a saveoptions field. Do this:

@if(@command([FileSave]);@command([FileCloseWindow]);“”)

@command([FileSave]) only returns TRUE if all the validations pass.

A cancel button wuold be:

FIELD SaveOptions:=“0”

@command([FileCloseWindow])

Line 1 here means “Don’t prompt to save”

Line 2 means “close”

but because you don’t save, the SaveOptions field is never actually added to the document!

Subject: RE: Save Problem

Hi,

Please use the below code…

@Command([FileSave]);

@Command([CloseWindow]); // dont use fileclosewindow

Regards

VK