Set focus to an element in tableview form

I have a TableView Locked from that shows 4 fields and only one of them is editable. That field is also the one in the order tab.
I need that everytime the user press key down or up to move to another record that field gain the focus and it seems that it is done, but the cursor is not shown in the field and is confusing for the user.
Any clue in how to get this done?
I have to say that I’m using onRender event to change the bqckground colour of the selected record and I have also been trying to cokbine that to show a different background for the editable field, but The only way to get that field in a different color is by clicking on it

where do you now ask for requestFocus on that field?
in the onrecordselection?

Hi Johan, yes you are right. I have elements.lote.requestFocus(); in the onRecordSelection()

i guess there could be a sequence of events that could be tricky…
Can you create a case for this with a simple sample?

Sure. I will later today.

BTW. I can see that when running an application from the Servoy Developer the Menu Bar is no deactivated even with removeAllMenus. Is that because of running from Developer? I must say that I have not tried from the Server.

Here you have the sample solution.

I have a requesFocus method in the onRecordSelection event, but it´s not working. You never know wich field has the focus.

sample2.servoy (4.36 KB)

please make a case with that.

jasantana:
Here you have the sample solution.

I have a requesFocus method in the onRecordSelection event, but it´s not working. You never know wich field has the focus.

Will be fixed in Servoy 6.0 rc1 .