Embedded Editor Trouble: How to Save the Document in the Embedded Editor?

I am perplexed and hoping someone can help steer me straight. The problem is that an embedded editor won’t let me save the underlying document, so what’s the point? How am I suppose to save it then? As Paul might say, here’s the rest of the story…

Earlier this week, I created an embedded editor and targeted it with an embedded view. I originally tried using Save buttons, but Notes Help indicates that you can’t include buttons or hotspots in an embedded editor. So I then added some LotusScript in the underlying form which would save the document as the user tabbed through each field. It WAS working great for half-a-day, but now I’m getting an error message that says “UI commands are not allowed”. Assuming its in reference to my uiDoc.Save call, I remarked out every reference to the uiDoc that existed in my code. The problem now is that if I’m editing a document in the embedded editor, another error message says “You must save the document before moving out of the editor.” Using File >> Save or CTRL-S cause the “UI commands not allowed” message to occur again.

Did somebody design this as a cruel joke, or perhaps I am on Candid Camera right now, but in either case I’m trapped in a vicious cycle! I’m stumped. :wink:

So again the question is: how in the world is one suppose to edit and save a document in the embedded editor? What’s the point of the editor if you can’t commit your changes?!

Thanks in advance for your help! It’ll be greatly appreciated.

RAM

Subject: Use Action Buttons

Just include action buttons (e.g., “Save” and “Edit”) on the Form you use as your embedded editor.

Subject: RE: Use Action Buttons

Thanks for the response, Lawrence. After working with this more, I’ve come to the conclusion that the form I was working with somehow became corrupted. I don’t know how or why, but out of frustration, I rebuilt the entire form from scratch. Now it works just fine and saves the document correctly.

And yes, you are right. Using action buttons works great.

-RAM