Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

set OLE.FocusItem doesn't work

I tried to set item on focus by using :

set_property(controlID, "OLE.FocusItem", itemKey)

but it doesn't work at all

I used the same itemKey on

Set_Property(controlID, "OLE.SelectedItems", itemKey)

and it worked, so it must be something wrong with OLE.FocusItem (actually I can get the focus item, but cannot set focus to an item)

Comments

  • Before looking into this, I want to make sure you understand the way this property works. Focus is not the same as Selected. Look again at the documentation and the sample screenshot to get a clear understanding. Also, you must have the ShowFocusItem property set to 1 (which is the default).
Sign In or Register to comment.