0

I have a UITable storing 2d points and three pieces of data for each point. I have plotted the 2d portion of the data from this table in a figure.

What I need to do is select the row of the table that corresponds to a clicked point. For example: if I click the point [5,-6], then the selected cell should jump to a row with matching 'X' and 'Y' values (specifically the second column of data if possible).

I have been banging my head against this for a few hours now because I can't find a way to pass any data in or out.

Any help would be much appreciated! Thanks in advance!

roger
  • 55
  • 1
  • 8
  • Which bit of this are you struggling with? Getting the click event, identifying the data a click event corresponds to, programmatically highlighting the table, etc? Currently this is quite broad... – Wolfie Oct 06 '20 at 07:18
  • I am having trouble connecting the bits together. I can highlight a cell in the table, I can get a click event, and I can identify which point was closest to the click, but I can't get the pieces to communicate to each other in the way they need to. Essentially, I don't know how to pass the table as an argument to the click handler, or get the cell highlighted from within the click handler. Sorry if I wasn't clear before, and thanks for the quick response! – roger Oct 06 '20 at 07:59
  • Are you using App Designer? – Òscar Raya Oct 06 '20 at 11:27
  • Yes, I am using App Designer. I would have just made a member function otherwise, but it doesn't seem to like that. XD – roger Oct 07 '20 at 15:00

0 Answers0