Popup windows from a button event

i am opening up a pop-up window that contain a TimeSeriesChart. the PopUp windows has 3 parameters and works fine

when i try to open the same windows with a button and send different parameters, the windows open up but the path parameter does not get passed or updated

what am I missing !!

thx in advance

You are missing your array subscript in the latter set of parameters.

1 Like

Why are you passing parameters through a list of dicts ?
Do you ever pass more than the one dict ?

not sure what you mean... this is how the chart data is bind


i am using the same method in other pages successfully using embedded windows object. the pop-up method is failing to update the parameters.

yes, the idea is to pass different paths for different meters

Right, that expression needs an array of dictionaries. Your popup action is only passing a simple dictionary, when it needs to pass a single dictionary in a list.

If you only ever want to pass a single tag to the popup, you can make a view custom property that encapsulates a single dictionary in a list, so that the history binding can use it.

sorry i have hard time understanding... can u point me to an example or another post with similar issues?

Your view expects this:

[
  {
    'aggregate': "something",
    'alias': "something",
    'path': "something"
  }
]

A list containing dicts.

instead of Graph.param, you should be using Graph[0].param

Though I'd probably build the list first in a custom prop, then pass just that to graph