Reputation: 525
I have a following situation.
There are two document types:
Parent
Field Person - Name
Child
Field ParentNoteUNID - Text
Fields Name, Surname etc..- Text
I would like to compute access to Child document, so Child document could be edited by person included in Name field of Parent.
I tried to use Computed for display Authors field on Child document with following formula:
@Name([Canonicalize];@GetDocField(ParentNoteUNID;"Person"))
Field seems to be calculated, but access is not granted when document is opened.
Point is to grant access to document using computed field, without field recalculation on existing documents.
Any help will be appreciated!
Upvotes: 0
Views: 76
Reputation: 14628
You can't use a computed for display field to control access, because they are not stored in the document on disk. They only exist in memory after someone opens the document. Enforcement of Reader and Author fields by the Notes APIs occurs before the document is actually opened.
If you want to change access, you will have to use a computed field, and you will have to do the recalculation for all of the affected documents. The Reader and Author fields have to be saved to disk in the NSF file before the APIs will honor them.
Upvotes: 4