Simple XPage question - save computed field?

Just getting my feet wet, and getting embarrassingly stuck on all the little things.

I have an XPage tied to a Notes Form where I can edit values on existing docs, and sort of create new docs.

I’m trying to get a computed value to save. I can get it to show on screen, but after saving no field exists in the resulting Notes document.

I have an Edit Box with Read-only checked, bound to a field that exists on the Data Source Form, with the right computed default value showing - doesn’t save.

I have a Computed Field, with the right computed value showing - nothing saves.

I’ve tried editing existing docs and creating new ones, no field gets created.

Do I need to turn on computeWithForm and leave it to the back end form to compute the value? I experimented with this a little, when composing a response doc it doesn’t seem to know who the parent doc is for inheriting values :frowning:

What do I need to do? Any basic help? Please & thank you very much!

Subject: further searching reveals an answer…

This seems to do the trick: manually set the field in the Data Source’s postNewDocument event:http://www-10.lotus.com/ldd/nd85forum.nsf/5f27803bba85d8e285256bf10054620d/1633a8f0682491158525758500428d95?OpenDocument

Now why didn’t I think of that? :wink: