Getting a RecordIndex???

Questions and answers on designing your Servoy solutions, database modelling and other 'how do I do this' that don't fit in any of the other categories

Getting a RecordIndex???

Postby Em » Sat Jul 03, 2004 2:23 am

I have a relation between two tables contructed so that all records are read into a portal and foundset when the form loads.

The portal displays all the records. I need help in determing how to know which record I am selecting in a method or calculation when select a portal row with a mouse.

Also, I don't seem to see servoy_row_bgcolor working in any form view.
Em
 
Posts: 1
Joined: Sat Jul 03, 2004 2:17 am

Postby IT2Be » Sat Jul 03, 2004 11:58 am

The portal displays all the records. I need help in determing how to know which record I am selecting in a method or calculation when select a portal row with a mouse.


You can use this with the onRecordSelection event (or anywhere you like):
Code: Select all
var rowIndex = portal_name.recordIndex


Also, I don't seem to see servoy_row_bgcolor working in any form view


I need more info to help you. What does the calculation you use look like..
Marcel J.G. Trapman (IT2BE)
SAN partner - Freelance Java and Servoy
Servoy Components - IT2BE Plug-ins and Beans for Servoy
ServoyForge - Open Source Components for Servoy
User avatar
IT2Be
Servoy Expert
 
Posts: 4766
Joined: Tue Oct 14, 2003 7:09 pm
Location: Germany


Return to Programming with Servoy

Who is online

Users browsing this forum: No registered users and 37 guests