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

    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])


    The identifier for the DocuVieware™ instance you want to reset the annotation properties from.
    A string containing the author.
    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.