Hello ,
I am asking if I have a parameter holding a html DOM element like :
<img src=“Url...”/> so if I want to render the image in Visual Overview and in the Dashboards custom html component , how to connect the component with the Parameter value ?
How to go through that ?
It's not possible to render the value of a parameter directly as html.
For the new Dashboards app, there is a task on our backlog that will make it possible to show images dynamically on a dashboard, which could make use of the value of a parameter.
In the legacy Dashboards module, it is possible to add an "Inline frame" component where an URL pointing to an image can be configured, this URL can contain the placeholder %parametervalue% which will be replaced by the value of a specified parameter:
Hi Ahmed,
To show this in visual overview, you can use a link shape with as value a # and then the link to the image, provided the URL is accessible from the client machines. In order to do this, the <img> tag needs to be removed from the parameter value. This can be done using the regexreplace function. Because you need to remove the start and the end of the tag, you will need to nest 2 regexreplace placeholders and use a param placeholder.
You can find more info about placeholders in the help.
the resulting value of the link field would look something like this:
[RegexReplace:">,[RegexReplace:<img src=",[param:DmaID/ElementID,ParameterID],],]