02-12-2025 05:20 AM
I have two datasets. Both with identical channels.
I have created a a script that will for any channel name passed create a view plotting two curves one from each dataset to allow comparison.
I would like to make this dynamic, and ideally looking to allow the user to click a channel in the portal, and the view to update with the display, but looking at the portal documentation, there does not appear to be a way to trigger an event based on a channel selection into which I could hook my script.
Is there any way for me to do this?
Am running Diadem 2023
Solved! Go to Solution.
02-18-2025 06:55 AM
If you look into DIAdem help you will find 'Events object <Portal>' entry. According to this only two user events are available in data portal: OnContextMenuPointSelected and OnShowingContextMenu. So the solution could be to define you own context menu point that triggers the action you want. But it should be much easier just to drag the the channels you want to see into your VIEW layout. If you want to remove the channels that were shown in VIEW before you could use the OnDrop event in VIEW to trigger this.