Expand my Community achievements bar.

set focus on last items of a list

Avatar

Level 3

Hi Guys,

my next question is:

is it possible to set focus on the last items of a populated list with   xfa.host.setFocus(PAGE3.lisbox1.selectedIndex); ?

Thanks in advance!!

Diana

1 Reply

Avatar

Former Community Member

You woudl use teh setFocus to get the cursor to the object not to actually select something. If you want to display the last item you woudl set the DDList.rawValue to that last item in the list. The SelectedIndex gives you the index of th eitem that was selected in the list (not what you are after).

paul