FileSave Does Not Work

I have an application in which, all of a sudden, some documents are not saving when I click the “Save” button. I run the application from a web browser, and the button is an action button. It sets a field value and then does @Command([FileSave]) and @Command([FileCloseWindow]).

I know the document is being edited (@IsDocBeingEdited is true), and I know the button code is running because I added some agents to print messageboxes, and they run. However, the field value is not being set, and the code in the $$Return field is not executing.

As a workaround, I tried adding an agent that does a doc.Save. Again, the agent is running, and it tells me the field value is being set, but when it’s done the field is not set.

There is no SaveOptions field on the form, and no WQS code. Also, I’m only having the problem with newer documents – older ones seem to be fine (so far).

I tried rebooting the server and compacting the database (using -c and also using -B), but no luck. At this point, I’m stumped – does anyone have any ideas what might be happening or where I might look next?

Thanks,

Mike Naughton

Subject: RE: FileSave Does Not Work

There might not be a SaveOptions field on the form but perhaps it is in the document - check via doc properties in the notes client and see if there is a saveoptions field in the document. The field could be getting created via an agent.

Is there any Javascript creating a SaveOptions field?

Just a thought.