plugin.appendToResults

The 'appendToResults' function simply appends an item in the query list view.

  • Prototype: plugin.appendToResults(sDbFn, sSsgPath, sSsgName, sFindStr);
  • Parameters:
    1. sDbFn: full path to a database file;
    2. sSsgPath: SSG path to an info item;
    3. sSsgName: file name of a document (attachment);
    4. sFindStr: text to highlight when opening the document;
  • Return Value: 0 on success, or -1 on failure.
  • Example:
    plugin.appendToResults('/home/username/test/1.nyf', '/Organizer/data/0/1/2/', '123.html', 'text to highlight');