I currently have a view that has a link that should pass an ID in as a query parameter to the next dashboard. Relevant parts of the definition of the view, field being used in the link, and link is as follows:
view: my_old_view {
dimension: id {
type: string
sql: ${TABLE}.id ;;
}
link: {
label: "Winners"
url: "/dashboards/analytics::my_new_dashboard?Drawing+ID={{ my_old_view.id | url_encode }}"
}
}
}
The new dashboard has a filter called “Drawing ID” that is applied to tiles within the dashboard but the query parameter doesn’t seem to getting passed through. The URL I would expect would be https://looker.instance.url/dashboards-next/analytics::my_new_dashboard?Drawing+ID=1234567890 where “1234567890” is the ID that I click on from the original dashboard. Instead, the URL looks like https://looker.instance.url/dashboards-next/analytics::my_new_dashboard?Drawing+ID= with no ID and I’m not sure why this is happening.
Solved! Go to Solution.
Hi Maikerusan,
I think this can be solved if you make the following change:
view: my_old_view {
dimension: id {
type: string
sql: ${TABLE}.id ;;
}
link: {
label: "Winners"
url: "/dashboards/analytics::my_new_dashboard?Drawing+ID={{ value }}"
}
}
}
Let me know if it works!
Best,