Get row number of Tabless Panel in onAction event

Questions and answers for designing and implementing forms in Servoy

Get row number of Tabless Panel in onAction event

Postby sergei.sheinin » Tue Nov 18, 2014 8:27 pm

I have a tabless panel with a list of items. When column "name" is clicked I want to be able to pass its row number to the event handler. How would I do so?


Gonki
Sergei Sheinin
JavaScript, RDBMS
http://js2dx.com
sergei.sheinin
 
Posts: 79
Joined: Wed May 07, 2014 3:22 pm

Re: Get row number of Tabless Panel in onAction event

Postby ROCLASI » Wed Nov 19, 2014 1:53 am

Hi Gonki,

You can use controller.getSelectedIndex() or foundset.getSelectedIndex() in your method for this.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium


Return to Forms

Who is online

Users browsing this forum: No registered users and 6 guests