XPage: Save computed field to backend notes doc

Hi,

I am trying to compute a field on an XPage and have that computed field saved to the backend notes documents on save.

I can do this if I use an ‘Edit Box’ with a ‘Default Value’ and a data source but this will only re-compute if the page is reloaded and will allow users to edit the field contents.

I want to be able to block the field contents but still save the field contents to the back-end.

If I select ‘Read-only’ then I cannot get the value to save to the backend.

I have looked into using a ‘Computed Field’ which correctly updates the value but I cannot seem to get it to save to a datasource as this part is used to do the compute.

Could someone help?

Many thanks,

Ian

Subject: Re: Save Field

Try removing the visibility option, so it’s not available. Alternatively, use an editable field with an Input Translation formula or computed field on your form and in the Data properties for the DominoDocument on your XPage (under All Properties\Data) set computeWithForm to onsave.