Very simple question

I am having trouble getting my help files and beta updates after reinstalling servoy, so I have to post my simple question.

I have a portal of related records on a form, I want to go to a particular related record and change a value. I am looking for the record number compared to the index. I am trying avoid a loop, and go directly to portal record 3 or 10 or whatever.

Thanks for any help,
Erich

Try this:

elements.portal_details.setSelectedIndex(number index)

Replace “(number index)” with the portal row you want to go to.

You can also “get” the currently selected portal row with:

var sel = elements.portal_details.getSelectedIndex()