John Hotalen · Jan 26, 2022

ZEN Tablepane double click issue

Hello To all my fellow Cache Developers,

How the new year is finding everyone well.  The purpose of this post is to ask everyone a question about Cache tablepane dblclick functionality that does not appear to be working like I thought it would.   Here is my dilemma:   I have a fairly simple tablepane that displays several columns of data (just strings and dates).  I setup the tablepane property dblclick to call a client method, so I can take an action based on the row that the user double-clicked on.  So that table property is set to this     dblclick="zenPage.resolveQATicket();" and within the resolveQATicket client method I try to retrieve the selected row index, so I can do some actions with it.   The problem is that when I try to get the selectedIndex value it is always coming back as -1 even though there is rows of data listed in the table.  If I do a single-click first and then a double-click it seems to work.   But that is not reasonable as most users will just quickly double-click a row to have an action performed.   Any thoughts/ideas/feedback about why the double-click does not work (meaning does not allow me to get the selectedIndex value)?   Looking forward to hearing everyone's comments.

Best Regards and Happy Coding!    Go Team!

Product version: Caché 2017.1
$ZV: Cache for OpenVMS/IA64 V8.4 (Itanium) 2017.1.3 (Build 317_5_19311) 4-OCT-2019 16:58:00.21
0 66
Discussion (2)0
Log in or sign up to continue

Hello to all.  You can disregard this post.  I found the solution/answer myself through more research/debugging. 

I accidentally had the enableToggleSelect property set to true - which was couteracting the second click of the double-click.   Once I got rid of that property it worked as expected.