Getting a RecordIndex???

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.

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):```
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..