Implement a dedicated action to open the data browser#3796
Implement a dedicated action to open the data browser#3796rjwills28 wants to merge 2 commits intoControlSystemStudio:masterfrom
Conversation
User can specify a single or list of PVs to plot as well as set the timeframe to display. The default archiver will also be attached to the PVs.
|
Works as expected. Since in the data browser users may specify a formula, would it make sense to support it here as well? If yes, then parsing list of PVs would be affected as space chars may be used in formulas. |
Simplify construction of URI in action handler to open the data browser. Rename variables. Remove copyright note. Remove unused variables.
|
|
In your implementation, the OpenDataBrowserActionHandler in display-runtime uses classes from org.csstudio.trends.databrowser3.*. |
|
Thanks for the idea @kasemir - that is a good point. I did try this by calling: Indeed it does work for opening the data browser showing the list of PVs, however it does not by default add the archive data source, which means that no data actually gets display. I also then can't configure the timeframe. |



In CS-Studio we used to have an ActionButton, which would run a script to open the data browser and plot specific PVs. This was done using an
executeEclipseCommand, e.g.Obviously this is no longer valid in Phoebus.
I am aware that you can launch the data browser from the right click context menu but we would like to be able to be able to do this from a left click action and plot multiple PVs on the same plot. We could not find another suitable way to reproduce this behaviour (e.g. using a command or script).
Instead we thought it would be cleaner to provide a new action to open the data browser. The inputs include a single or list of PVs to plot as well as the timeframe to show. Potentially we could configure other parts of the data browser but this seemed like a good starting point.
We would appreciate any feedback you may have.
Checklist
Testing:
Documentation: