# Selecting a Perspective table row with right-click

**URL:** <https://forum.inductiveautomation.com/t/selecting-a-perspective-table-row-with-right-click/99372>\
**Category:** Ignition\
**Tags:** ignition81, vision, perspective\
**Created:** [December 3, 2024, 5:08pm UTC](https://forum.inductiveautomation.com/t/selecting-a-perspective-table-row-with-right-click/99372 "2024-12-03T17:08:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Andrew\_Martin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew_martin/32/33340_2.png) [@Andrew\_Martin](https://forum.inductiveautomation.com/u/Andrew_Martin)\
**Post date:** [December 3, 2024, 6:32pm UTC](https://forum.inductiveautomation.com/t/selecting-a-perspective-table-row-with-right-click/99372/3 "2024-12-03T18:32:32Z")

</div>

Well, This is a fairly substantial change on my setup, but its better than what I was cooking up.  
I'm greedy, and I still am interested if the concept of a script-triggered-mouseclick might still be applicable in perspective. It certainly seems to be a more 'elegant' way around the issue, and I do have concerns on performance if I push ahead with the rendered-view method. Papa's got a big table.

[This thread](https://forum.inductiveautomation.com/t/gain-focus-on-a-numeric-text-field-when-barcode-enters-a-value/49403/14) really caught my attention, particularly this logic from @jespinmartin1

```python
if event.propertyName == "longValue":
	event.source.requestFocusInWindow()
	def click():
		from java.awt.event import MouseEvent
		from java.lang import System
		target = event.source
		id = MouseEvent.MOUSE_RELEASED
		when = System.currentTimeMillis()
		x = target.getX()
		y = target.getY()
		click = MouseEvent(target, id, when, 0, x, y, 1, False)
		event.source.dispatchEvent(click)
	system.util.invokeLater(click)

```

if anyone else has experience firing off mouse-events in perspective like this example from vision, let me know! I'm going to play around with the code on the off chance I get lucky and can get it working

---

_[View the full topic](https://forum.inductiveautomation.com/t/selecting-a-perspective-table-row-with-right-click/99372)._
