moveEntry (NotesOutline - JavaScript)

Moves an outline entry and subentries from one location to another.

Defined in

NotesOutline

Syntax

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

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

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

Parameter Description
OutlineEntry entry The entry being moved.
OutlineEntry referenceEntry The entry after or before which the entry being moved is placed.
boolean after
  • true (default) to move the entry after the reference entry
  • false to move the entry before the reference entry, as a sibling
boolean asChild
  • true to make the entry a child of the preceding entry
  • false (default) to not make the entry a child
Note: The parameter default changed to false in Release 5.0.2.

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.

Moving an entry to the beginning of the outline makes it a top-level (level 0) entry.