09-11-2022 12:55 PM
Just as the title says, I am not sure why the indicators are showing fixed values no matter which cell I select in the table. Any help is much appreciated. Thanks
Solved! Go to Solution.
09-11-2022 02:04 PM
Save your VI for a previous version (at least 20) so we can open it, not many people have the 22.3 version installed.
09-11-2022 02:52 PM
Sorry about that. Please find the vi as below
09-11-2022 06:48 PM
Your indicators are displaying 3 values that aren't changing:
The active cell is affected by writing to that property, not by clicking on the table.
Use an Invoke node to point to the row, column.
Also, your timeout case is pointless.
09-11-2022 07:43 PM
@kevinks wrote:
Just as the title says, I am not sure why the indicators are showing fixed values no matter which cell I select in the table. Any help is much appreciated. Thanks
Instead of getting stuck in the mud, I assume that your real question is how to get the cell indices when clicking on a table.
Try this:
you can e.g. use the cell position output to index into the table array to get the value.
09-12-2022 06:05 PM
Sorry for being vague on the topic. I didn't need the cell row and column number but instead the exact coordinates of the cell so that I can push another ring control whenever the user clicked on the cell. Will that be possible?
09-12-2022 11:51 PM
The event data node as shown gives you the coordinates of the mouse click. You can use it for anything you like.
09-13-2022 08:48 AM
@kevinks wrote:
Sorry for being vague on the topic. I didn't need the cell row and column number but instead the exact coordinates of the cell so that I can push another ring control whenever the user clicked on the cell. Will that be possible?
Yes. I did that before.
In mouse down/down? case, use point to cell to find the row & column. Use that to make the cell the active cell.
Get the position and size of the active cell, resize your ring, move it the active cell position, make your ring visible.
After user made their choice, set the value of the active cell to user's choice. Hide the ring.
The ring looks just like part of the table. User won't be able to tell the difference.
09-13-2022 10:35 AM
@zou wrote:
@kevinks wrote:
Sorry for being vague on the topic. I didn't need the cell row and column number but instead the exact coordinates of the cell so that I can push another ring control whenever the user clicked on the cell. Will that be possible?
Yes. I did that before.
In mouse down/down? case, use point to cell to find the row & column. Use that to make the cell the active cell.
Get the position and size of the active cell, resize your ring, move it the active cell position, make your ring visible.
After user made their choice, set the value of the active cell to user's choice. Hide the ring.
The ring looks just like part of the table. User won't be able to tell the difference.
For that you again need the cell coordinates (as I showed) and not really the mouse coordinates. Obviously, the problem description is not very clear. 😄
09-14-2022 06:27 PM
@paul_cardinale wrote:The active cell is affected by writing to that property, not by clicking on the table.
Use an Invoke node to point to the row, column.
Yep, I get it now. Thank you