07-16-2008 04:25 PM
I am trying to work with a custom listfield. I would like to know the index of the row that has focus, both for access from a screen menu and for possible highlight customization.
I thought this would be ListField.getSelectedIndex() but it looks like a row is selected only when you click it (or go into selection mode).
There doesn't seem to be a straightforward API for this unless I'm missing something?
Tom
Solved! Go to Solution.
07-16-2008 04:36 PM - edited 07-16-2008 04:40 PM
ListField.getSelectedIndex() returns the row index with focus, -1 otherwise.
Do you have example code to provide?
07-17-2008 03:08 PM
Your response made me go look at the assumptions in my code again. Looks like user error. Thanks and sorry for taking your time.
-- Tom