dashUrl
dashUrl, function
def pure dashUrl(script: number): text
def pure dashUrl(script: number, tabSearch: text): text
def pure dashUrl(): text
def pure dashUrl(tabSearch: text): text
Returns an URL which, when visited, redirects to the latest dashboard.
Depending on the overload, the function can target a specific script (via script
) or a tab (via tabSearch
).
script
: the numeric identifier of the script whose dashboard is targeted (overloads 1 and 2).tabSearch
: the name of the tab to open (overloads 2 and 4).
Examples
show menu "Navigation" with
"Next Step" { href: #(dashUrl(10000)) }
"Previous Step" { href: #(dashUrl(20000)) }
Remarks
For dashboards of a specific script, use the first two overloads; for the dashboard of the calling script, use the third or fourth overload.
The dashUrl()
overloads that do not take a script
identifier cannot be used from modules or user-defined functions.
To open a specific slice of a dashboard, use sliceSearchUrl instead.
Note: This function cannot be called on try.lokad.com.