In This Topic
Reference Guides / JavaScript API / Annotations / SetAnnotDefaultAuthor

SetAnnotDefaultAuthor

In This Topic
 SetAnnotDefaultAuthor

This function allows you to set the annotations author property to a given value.

It should be called as soon as the user name is known so the annotations and comments author is automatically set.

SetAnnotDefaultAuthor: function (docuViewareID, author[, readOnly])

Parameters

docuViewareID
The identifier for the DocuVieware™ instance you want to reset the annotation properties from.
author
A string containing the author.
readOnly
An optional boolean value, true will make the Author field read only, false will leave it editable (which is the default behavior).

Return Value

1 if error, 0 if success.