Edit

AddDashboardPage(name, content)

Result Type: none

Definition:  Adds an html page to the navigator dashboard. The content can be html, or a url.

Example: 

AddDashboardPage("Manual", "https://cognito.co.nz/manual/?clean=1") — adds the MoneyWorks manual as a navigator page

Example: 

The standard MCP server package includes a public handler MCP:InstallHTMLPage(location, htmltext). When the MCP server is enabled, a dashboard page can load a url served by the MCP's HTTP server. Such a page can use the MCP server's JSON-RPC interface to query MoneyWorks (having the page served by the same server on the same port means that javascript requests can work with it without cross-origin problems). E.g.

MCP:InstallHTMLPage("/dashboard.html", GetScriptText("mw-dashboard.html"))
AddDashboardPage("Analytics", "http://localhost:"+MCP:GetPort()+"/dashboard.html")

See Also:

RemoveDashboardPage: Remove a dshboard page previously added by AddDashboardPage