algenty/grafana-flowcharting

Variable inside link url

segersrobbertKlarrio opened this issue · 6 comments

How can we use a Grafana variable inside a link url?
to be able to define url like: https://sub.${VARIABLE}.domain.com

Great plugin!
Thanks

Hi,
Thank you for the compliment :) and your feedback
I take this good idea, i'll try to intregrate it in 0.5.0.
For this week, i'll try to release it.

BR,
Arnaud

Hi @segersrobbertKlarrio,
It's already in 0.4.0 but i found a bug, if shape isn't mapping in "Color Mappings" and "Link Mapping",
Flowcharting not add link and replace variable
Fixed in 0.5.0-SNAPSHOT

https://algenty.github.io/flowcharting-repository/ARCHIVES.html

variable_link_ani

BR
Arnaud

Hello, Thank you so much for making this update, its exactly what i've been needing! I am trying it out in my local but am seeing some errors within the plugin itself. Any ideas what might be causing it?

image
image

Hi Emily,
Sorry, I didn't see your message.
If you copy/paste the XML in draw.io, it works ?

Yes, if i copy/paste the XML it works fine. I'm seeing in my backend services that it is not replacing the variable, instead it is sending as ${orderNum} instead of the actual value. Is this the correct way to use the variable in the URL?