Hi, I have a form in which two author are there…first is editable ,single valued field …other is computed multivalue field…I am taking a name from address book in first field …now clicking a button on which this name will be validated if that has proper author access then that name will be added to second field by call uidoc.fieldappendText(“author”,val)…its working fine but as soon as i save the doc that values from second field got vanished…they r not getting save…i tried by uidoc.Document.appendItemValue(“author”,val)but same prob…
Subject: problem in getting value in computed field plzz help
what is the formula for your computed author field? it should be @thisvalue
I prefer to use ‘computed when composed’ rather than computed. since the field is computed by a button (not by itself), put @thisvalue for the value formula
Subject: RE: problem in getting value in computed field plzz help
You are using NotesUIDocument to access the field, and you should use NotesDocument instead.Please be careful when changing the field value, because you can very easily end up with a Readers field that contains a single string that doesn’t match anyone’s name (e.g. nobody is named “Mary GreenHarvey Wallace” – neither “Mary Green, Harvey Wallace”), so nobody can view the document. You have to store it as a list containing one name per list entry.
Adding a separate CWC Authors field that allows access for an administration role, is a good way to prevent documents from vanishing because you can’t read them.
See this for some useful info. Compleat Reader and Author Field Troubleshooter