Edit Document and WEb

I am attempting to force a document into edit mode, make changes and then submit it via the Web. The document submits, but none of my changes are saved. I have an edit button. If I first put the document in edit mode by using this button, everything works great. I don’t want the user to have to hit two buttons. I tried to put the editdocument command and the beginning of the code, but it does not work. Please advise. Thanks in advance

Approver1:=Approver1;

@Command([EditDocument]);

@SetField(“Signature1”; @Name([CN]; @UserName));

@SetField(“Status1”; " Approved");

@SetField(“DateApproved1”; @Text(@Now));

@SetField(“CurrentOwner”; Approver4);

@SetField(“HistoryNumber”; HistoryNumber + 1);

@SetField(“Status” ; “Routing”);

@SetField(“History”; History + @NewLine + @Text(HistoryNumber) + ". " + @Name([CN]; @UserName) + " approved Change Review and routed " + Approver4 + " approval on " + @Text(@Now) + “.”);

url := “http://sit200.veaddhealth.org:3100/change.nsf/Change/By%20Current%20/” + @Text(@DocumentUniqueID) + “?OpenDocument”;

@MailSend(Approver1;“”;“”;“Change Review from” + " " +@Name([CN]; @UpperCase(@UserName));url;“”;“”);

@Command([FileSave]);

@Command( [FileCloseWindow] )

Subject: Edit Document and WEb

A better approach is on the Form properties (second tab), set the check box “Automatically enable Edit mode” to on.

This will force the document to be in only one state i.e. Edit instead of trying to switch it on the web.

Subject: Edit Document and WEb

http://www-10.lotus.com/ldd/46dom.nsf/ShowMyTopicsAllFlatweb/bdc71ad047ffad4185256de40070414e?OpenDocument

Subject: RE: Edit Document and WEb

Thanks for your help. I will give it a try.