Getting the node Name

Hi,

I have requirement where on clicking of the node a form should appear which have certain data. I am able to open the form using the ObjectDoubleClicked property on Diagram Listener but my requirement is to open different form which have certain properties based on the node dropped. How can I get the node name which is double clicked ?

If e is your listener’s parameter:

  • e.subject will be the GraphObject that was clicked
  • e.subject.part will be the Node or Link that was clicked
  • e.subject.part.data will be the model data for that node or link

From the data object you can look at any of its properties for whatever information you have in your app.

Read more about events at GoJS Events -- Northwoods Software.

Thanks !!!