Easy Chart with two indirect values?

Hey all,
Is it possible to use the cell update binding for two values in the same tag?
For instance, bank1/tank1/temperature, where the 1's can both be bound?

In theory, yes, I think so, based on an examination of the code and reading this:

You may need to add 'intermediate' custom properties to the component and reference those in the cell update binding instead.

I concur. I have done this before. Using an intermediate property is effective.

Thanks guys. My boss figured it out, lol. Used a custom prop for bank, another custom prop for the name, and just made enough bindings for each tank, rather than a binding for both bank and tank.

FWIW, creating a custom prop to hold the full tag path prefix (bank1/tank1) is also, usually, highly useful for the rest of the Window/Template/View as well.

I’m making assumptions, but rather than using an indirect tag binding:

bank{1}/tank{2}/tagName

in a lot of different places, it’s far better to use:

{1}/tagName

where {1} is bound to the custom prop which creates the full tag path prefix “bank1/tank3”

It’s not only faster to develop, but also less prone to errors and simple to modify if needed in the one place

3 Likes

:100: