Hi,
I’m using the Render Value As Link option in Column Styles.
I’m making use off the cell variables, eg:
https://www.example.com/view.html?symbol=$__cell_0_LOT
However, the issue with this is that it’s seeing $__cell_0_LOT is being seen as the entire variable and I’m not sure how to escape it.
Can you please if there’s a way to do this. This works fine when there is no underscore after the cell variable. Please advise if there’s a way that I’m not seeing.
Thanks!
Use the the alternative template variable syntax instead:
https://www.example.com/view.html?test=symbol=[[__cell_0]]_LOT
Thanks @daniellee much appreciated.
Is there any way to specify a column style (To render value as link) depending on the content of a column and not the column name itself?
I have a few links that need to make use of the same column that changes depending on the text (There’s 7 different possibilities, which would use different hyperlinks but would need to be on the same column). I’ve looked for ways to do this, but I haven’t been able to do it.
The only mechanism for this is the threshold function but the value needs to be a number for that to work and it can change the background color on a cell or a row or the text color for a cell:
http://play.grafana.org/d/000000031/table-panel-showcase?panelId=2&fullscreen&edit&orgId=1&tab=column%20styles
So probably not what you are looking for.
1 Like
Thanks @daniellee
Already making use of the cell colours, great feature.
I will most likely just create separate dashboards for these with their own links. Thanks a lot for your help today.