The 'getQueryResults' function retrieves all items or the currently selected items within the query results window. The return value consists of text lines of the query results separated by the linefeed character '\n'; Each item takes a line of fields in form of 'sDbPath \t sSsgPath \t sSsgName' separated with a specified delimiter, by default '\t'.

  • Prototype: plugin.getQueryResults(bSelected, sDelimiter);
  • Parameters:
    1. bSelected: determines if to return all listed query results or just selected items.
    2. sDelimiter: a delimiter character to separate fields for each items; Defaults to the TAB charater '\t'.
  • Return Value: text lines of the query results.
  • Example:
    alert(plugin.getQueryResults(true, '\t'));