Hello folks, been reading here since years and always found the solution in some posts.
To all frequent posters, thank you very much for all the time you spend here to answer questions!
Now to my first question that I haven’t found answered already:
I’m running on 3.4.2 and try to pass the “service” parameter of an “oh-time-series” as parameter in a custom widget.
I tried as “text” property and passed jdbc or rrd4j but it doesnt show a graph at all.
And I tried a BOOLEAN parameter with
service: =(props.UseSql)?'jdbc':'rrd4j'
but doesn’t show a graph neither.
When I enter the service directly e.g. service: jdbc or even service: “jdbc” it works as expected.
I’ve absolutely no experience with timeseries widgets, but I do know that “Sql” is not a valid persistence service and everywhere else I’ve used the service name it requires all lower case.
There are still a few properties for the chart widgets that are not actually processed by the expression parser. It seems that service is one of those.
Unfortunately, that means that your best course of action is to file a feature request in the UI repo to get this changed.
I don’t to a lot with custom code for charts, but as a workaround you can probably have two different time series components, each configured with one of the services and then only display one series or the other depending on the value of the useSql parameter.
@Gehetzter would you mind creating a git issue about service not being processed by the expression parser so it’s not forgotten, I (or someone else) might fix it. Thx.