From 2f16c27e358a998e02250fafbdeccb4e3bf26966 Mon Sep 17 00:00:00 2001 From: Polina Boneva <13227501+polibb@users.noreply.github.com> Date: Thu, 8 Sep 2022 17:14:37 +0300 Subject: [PATCH] Docs: Mention queryparam function (#54526) * Update data-link-variables.md Add queryparam function and tables of output to match the other listed variables * Update docs/sources/linking/data-link-variables.md Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> * Add r4j4h's suggestions to the new documentation space with some partial changes to the wording * Add r4j4h's suggestions to the new documentation space with some partial changes to the wording * mockery generated code as it is on main * simplify changes in docs and go straight to the point Co-authored-by: Jasmine Hegman Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com> --- docs/sources/panels/configure-data-links/index.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/sources/panels/configure-data-links/index.md b/docs/sources/panels/configure-data-links/index.md index 1d095ae3443..5812e5fd0fc 100644 --- a/docs/sources/panels/configure-data-links/index.md +++ b/docs/sources/panels/configure-data-links/index.md @@ -66,9 +66,15 @@ Value-specific variables are available under `__value` namespace: When linking to another dashboard that uses template variables, select variable values for whoever clicks the link. -`${myvar:queryparam}` - where `myvar` is a name of the template variable that matches one in the current dashboard that you want to use. +`${var-myvar:queryparam}` - where `var-myvar` is the name of the template variable that matches one in the current dashboard that you want to use. -If you want to add all of the current dashboard's variables to the URL, then use `__all_variables`. +| Variable state | Result in the created URL | +| ------------------------ | ----------------------------------- | +| selected one value | `var-myvar=value1` | +| selected multiple values | `var-myvar=value1&var-myvar=value2` | +| selected `All` | `var-myvar=All` | + +If you want to add all of the current dashboard's variables to the URL, then use `${__all_variables}`. ## Data links