Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create dynamic data links with variables as parameters #118

Closed
tracy-french opened this issue Mar 3, 2022 · 7 comments
Closed

Create dynamic data links with variables as parameters #118

tracy-french opened this issue Mar 3, 2022 · 7 comments
Labels
Milestone

Comments

@tracy-french
Copy link
Collaborator

Desired UX: Create dynamic links from one dashboard to another without having to hardcode parameters for every bioreactor.

Preferred solution: Want to be able to use something like ${__data.fields.} to access the asset-id & timestamp and pass it as a parameter in a link.

@taleena
Copy link
Collaborator

taleena commented Mar 10, 2022

Of the recently reported requests, this is 3rd in priority.

Desired functionality:
Create dynamic links from one dashboard to another without having to hardcode parameters for every bioreactor.

Suggested Solution:
Want to be able to use something like ${__data.fields.} to access the asset-id & timestamp and pass it as a parameter in a link.

Existing workaround:
Create separate panels one for each asset and hard code the asset IDs in the data links. It is a maintenance burden and needs to be updated for each environment.

@taleena taleena added enhancement New feature or request prio/high labels Mar 10, 2022
@taleena taleena changed the title Dynamic data links Create dynamic data links with variables as parameters Mar 10, 2022
@ryantxu
Copy link
Member

ryantxu commented May 2, 2022

What is source query and result? Is there a reason we can not use ${__data.fields.}? Is the problem that you want the query value as part of the link?

@taleena
Copy link
Collaborator

taleena commented May 3, 2022

@tracfren Are you able to provide the answer to the above?

@toddtreece toddtreece added this to the v1.3.0 milestone May 6, 2022
@roygv
Copy link

roygv commented May 9, 2022

I want to be able to pass the asset name from the original Sitewise query as a parameter to another dashboard to implement a drill-down. A sitewise query does make the asset available as a parameter. When I pull the list of available parameters (by typing $ in the data link editor) the asset name or ID are not an option

@taleena
Copy link
Collaborator

taleena commented Jul 14, 2022

@toddtreece does this now have enough info?

@toddtreece
Copy link
Member

@roygv if i am understanding correctly, it seems like you could use dashboard variables for this workflow.

  1. define a variable for the assets:

image

  1. add the variable to your panel query:

image

  1. add the variable to a panel data link:

image

image

  1. repeat steps 1 & 2 for the target dashboard using the same variable name (in this example query0)

  2. click on a data link in the source dashboard, and it should set the variable in the target dashboard. in my example, the link URL ends up looking like this when it's rendered

http://localhost:3000/d/4AtLr7kVz/1-state-timeline?var-query0=e64c9075-9d89-47cb-8ee5-d3251bd253f4&orgId=1

@taleena
Copy link
Collaborator

taleena commented Nov 2, 2022

@roygv Did this work for you? We're closing for not, but please reopen if it is not resolved for you.

@taleena taleena closed this as completed Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants