Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum evGraphClick parameters in Omnis Studio 8.1

  • evGraphClick parameters in Omnis Studio 8.1

    Posted by maxperique on September 29, 2025 at 12:07 pm

    Hi.

    I’m using graph2 in Omnis Studio 8.1.7.

    The graph I’m working on is of major type kG2xy and minor type kG2xyScatter.

    I’m trying to use evGraphClick event to get the line number of the data element that received the graph click (I don’t care about the column, since it is a single set of data).

    I enabled mouseevents in the graph component. But, using


    On evGraphClick

    Calculate locLine as pItem


    I get locLine (pItem) always equal to 0.

    Was it a glitch of graph2 components in Omnis Studio 8.1.7 or am I missing something?

    Thank you!

    • This discussion was modified 2 days, 16 hours ago by  maxperique.
    • This discussion was modified 2 days, 16 hours ago by  maxperique.
    Götz Krija replied 1 day, 11 hours ago 2 Members · 1 Reply
  • 1 Reply
  • Götz Krija

    Member
    September 30, 2025 at 5:44 pm

    Hi Massimo,

    I tested this in the Graph2 sample library (available in the Studio Hub) and you can get the line number of the data element that received the graph click from the event parameter pSet.

    There is no need to enable mouse events in the graph component for this to work.

Log in to reply.