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).

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.

See also

User Contributed Notes
0 notes + add a note