Amit Rajgrihar
Amit Rajgrihar

Reputation: 23

How to add author field in old Lotus Notes document

I have huge number of uploaded document in Lotus notes. But the author field is not available in these documents. So user is not able to edit the document. It shows you are not authorized. I need a add a new field 'hdndocauthor' field with type 'Text List'.

Can anyone help me out, how to do it.

Upvotes: 0

Views: 1901

Answers (2)

nempoBu4
nempoBu4

Reputation: 6621

To add a new field you can also use NotesItem constructor with AUTHORS as specialType% parameter:

Dim item As New NotesItem(doc, "hdndocauthor", users, AUTHORS)

Upvotes: 0

Jochen Sack
Jochen Sack

Reputation: 121

Using LotusScript:

Dim item As NotesItem
Set item = doc.ReplaceItemValue("hdndocauthor", values)
item.IsAuthors = True

where doc references the underlying [back-end] document, and values is a Variant or String array containing the desired author names, which must be provided in canonical format.

Upvotes: 2

Related Questions