The setNotes(...) function has only one variation, not counting syntax variations.  The function simply changes the notes stored with the currently referenced document.  The result of the setNotes(...) function is a boolean value indicating if the procedure was successful.

Syntax:
setNotes( document-fieldnotes )
document-field.setNotes( notes )

Parameter Description
document-field The document field referencing the document which will receive the new notes.  If the field is read-only or does not currently reference a document the function will return false or null respectively.
notes The new notes to be stored with the document.