Does anyone know if it is possible to click or double click on a graph that would pull up a popup form that would allow for manual entry. The machine down time chart is built and there is a tool tip that should start and end time, but I want to click on this and have my downtime form popup. Is this possible in perspective?
Welcome to the forum, Sherman. Which component is this exactly?
we could have used onclick event I guess to open popup.
If you do that..... can the click through add the filters and only bring up the that specific event?
Have you tried using the props.selection
with an onDoubleClick
event?
A Side Note:
Don't pass data via params if it is going to be a large number of datapoints as it will break your webpage. This is due to the way that the params work in the props tree versus the other items in the props tree.
Instead add a mechanism to push data to the component via a message handler for example.
Never noticed anything like this, could you elaborate ?
What's a large number of data points ?
How does the webpage break ?
When passing say 50K plus datapoints to a chart for example. It always says Connection to Gateway Lost.
Here is an example of me increasing by a multiple of 10
This then prints out in the console each time that the banner at the top pops up:
But if I use a message handler to pass the data to the component via system.perspective.sendMessage
it has no issues loading the data.
Alright, thanks for the heads up !
We are trying this today The ribbon chart. Show machine status and when thr downtime occurs i want to have that in the form that pops up. Is there a way to link the onDouble click to where the mouse is at like a tool tip?
Inside event handlers, they have a reference to self
and the event
. Type in event.
to get a popup of event properties available. For click events, there are clientX and clientY you can use.
Alternatively, consider using the equipment schedule component which has built-in functions for selecting events and such. It has some shortcomings, but it's what I use for this.