A HostDocument object represents an application document object inside the host application. Information such as the document's caption or document location can be retrieved.
A string containing the caption, or null upon error
Returns the document's current caption. If the document is no longer open, null is returned
A string containing the document location, or null upon error
Returns the document's location. This can be a internal table name, a filename, or a url.
A string containing the document type, or null upon error
Returns the document's type as a string This value may be "table", "editor", "query", "report", or "web". If the document fails (perhaps because the document no longer exists), null is returned
True upon success, false otherwise
Calling setCaption will update the caption that is displayed for the document.