# Perspective table onRowDoubleClick event not working

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [July 15, 2024, 1:38pm UTC](https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224 "2024-07-15T13:38:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leigh.shannan](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Leigh.shannan](https://forum.inductiveautomation.com/u/Leigh.shannan)\
**Post date:** [July 15, 2024, 1:38pm UTC](https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224/1 "2024-07-15T13:38:51Z")

</div>

Hi,

I have a perspective project that I am having a small issue with. The project uses its own identity manager. If the user is not logged in, they can view the data in a table, but other components, such as buttons are hidden.

When logged in, if a user double clicks a table row, "onRowDoubleClick()" fires a script which checks the user level and if user level is correct, a popup opens which allows them to edit/add to/remove information in a database, based on the table data.

The issue is that if the user is not logged in, I would like a different popup to appear, with limited functionality. However, the "onRowDoubleClick()" event doesn't seem to fire if the user is not logged in.

I also tried adding a script to the "onRowClick()" event as well, but this doesn't seem to fire unless logged in either.

Security on the table is set to public.

I'm not sure what else could be going wrong. Do I need to add a default user that is automatically logged in? Is that possible?

Thanks,  
Leigh

---

<div class="post-metadata">

**Author:** ![simeonw](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@simeonw](https://forum.inductiveautomation.com/u/simeonw)\
**Post date:** [July 15, 2024, 6:43pm UTC](https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224/2 "2024-07-15T18:43:22Z")

</div>

Is the script definitely not firing at all? Are you able to put a **system.perspective.print()** call at the very start of the **onRowDoubleClick()** to confirm this is indeed the case. This will print to the developer tools console log in the browser (F12).

How are you checking the user level? Is it possible that the script checking the security level / role is throwing an unhandled exception and failing to complete?

---

<div class="post-metadata">

**Author:** ![Paulo\_Custodio](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulo_custodio/32/56599_2.png) [@Paulo\_Custodio](https://forum.inductiveautomation.com/u/Paulo_Custodio)\
**Post date:** [July 15, 2024, 7:25pm UTC](https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224/3 "2024-07-15T19:25:12Z")

</div>

What @simeonw suggested would be my first step. Let us know what is being printed. If possible, please add some pictures to allow us to better help you.

---

<div class="post-metadata">

**Author:** ![Leigh.shannan](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Leigh.shannan](https://forum.inductiveautomation.com/u/Leigh.shannan)\
**Post date:** [July 18, 2024, 11:20am UTC](https://forum.inductiveautomation.com/t/perspective-table-onrowdoubleclick-event-not-working/93224/4 "2024-07-18T11:20:01Z")

</div>

Thanks for your replies.

All sorted now. There was an unhandled exception further down the script that I was missing.
