addEntry (NotesOutline - JavaScript)

Adds an entry to an outline.

Defined in

NotesOutline

Syntax

addEntry(entry:NotesOutlineEntry, referenceEntry:NotesOutlineEntry) : void

addEntry(entry:NotesOutlineEntry, referenceEntry:NotesOutlineEntry, after:boolean) : void

addEntry(entry:NotesOutlineEntry, referenceEntry:NotesOutlineEntry, after:boolean, asChild:boolean) : void

Parameter Description
OutlineEntry entry The entry being added.
OutlineEntry referenceEntry The name of an existing entry. Specify null to add the first entry to an empty outline.
boolean after true (default) to put the entry after the existing entry; false to put the entry before the existing entry.
boolean asChild true (default) to make the entry a child of the preceding entry. If boolean after is false and boolean asChild is true, an exception is raised.

Usage

You must save the outline or the effect of this method is lost when the program exits.