Skip to content

Note

The Note class represents a note or remark, providing properties to access the note's creator, text, and date of creation, as well as methods to save or delete the note. Each record/document can have one or more remarks. Access record's notes via record.notes property.

Properties:

  • creator: Grantee (read-only)
    The user or entity (grantee) who created the note.
  • text: string (read-only)
    The content of the note.
  • remarkDate: Date (read-only)
    The date when the note was created or remarked.

Methods:

  • save()
    Saves the note. This method commits any changes to the note to the database.
  • delete(): void
    Deletes the note from the database.

Examples:

Managing record notes is possible via NotesView control. All you have to do is to initialize NotesView by setting source property to a record/document or RecordsView control. If initialized with RecordsView control, NotesView will display notes of currently focused record:

this.remarksView = new NotesView(this);  
this.remarksView.align = Align.Bottom;  
this.remarksView.height = '20%';  
this.remarksView.source = this.recordsView;

Example of adding a note to a document in code:

my_record.notes.add("my note text");