sign (NotesDatabase - JavaScript)

Signs elements in a database with the signature of the current user.

Defined in

NotesDatabase

Syntax

sign() : void

sign(documenttype:int) : void

sign(documenttype:int, existingsigsonly:boolean) : void

sign(documenttype:int, existingsigsonly:boolean, namestr:string) : void

sign(documenttype:int, existingsigsonly:boolean, namestr:string, namestrisnoteid: boolean) : void

Parameter Description
documenttype One of the following.
  • NotesDatabase.DBSIGN_DOC_DATA 1 signs all data documents' active content (hotspots)
  • NotesDatabase.DBSIGN_DOC_FORM 4 signs all forms
  • NotesDatabase.DBSIGN_DOC_VIEW 8 signs all views
  • NotesDatabase.DBSIGN_DOC_ICON 16 signs the icon
  • NotesDatabase.DBSIGN_DOC_ACL 64 signs the ACL
  • NotesDatabase.DBSIGN_DOC_HELP 256 signs the "About Database" and "Using Database" documents
  • NotesDatabase.DBSIGN_DOC_AGENT 512 signs all agents
  • NotesDatabase.DBSIGN_DOC_SHAREDFIELD 1024 signs all shared fields
  • NotesDatabase.DBSIGN_DOC_REPLFORMULA 2048 signs the replication formula
  • NotesDatabase.DBSIGN_DOC_ALL 32767 signs all elements
existingsigsonly
  • true to sign only elements with existing signatures
  • (default) false to sign all elements
namestr Programmatic name or note ID of a single design element.
namestrisnoteid
  • true if parameter 3 represents a note ID.
  • (default) false if parameter 3 represents a programmatic name.

Usage

This method signs all design elements of the specified type if you specify parameter 1 and do not specify parameter 3.

If you specify parameter 3, this method signs one design element. You can also specify parameter 1 to positively define the design element. If more than one design element has the same name and parameter 1 is not specified, this method signs the first design element with the specified name.

This method executes only on a client.

Examples

This button signs all the forms in the current database.
database.sign(NotesDatabase.DBSIGN_DOC_FORM)