RequestFocus issue ?3.1.4 issue

I have a form with a tab-panel showing a listview form.
On the listview form there’s a button to add a new record

controller.newRecord(false)
mbs_item = ""
controller.saveData()
elements.mbs_item.requestFocus(false)
application.output('focus gained') // so I can test in debug.

Previously this worked fine in Developer. Now it doesn’t - the focus goes briefly to the mbs_item field then nowhere. The only change was upgrading to 3.1.4.

Stepping through the method in debug shows that the field gains focus, but loses it as soon as the method terminates. No other method is triggered. I also note that the ‘e’ symbol in the status bar reappears once the method terminates, suggesting unsaved data, but which table?

Can anyone suggest where I should start digging? what events can be going on here, that could explain the observed behaviour?

do you have a small sample solution demonstrating this?
then please make a case in our support system and tell me the caseid

Found the problem, this fails to show focus

application.updateUI() 
elements.mbs_item.requestFocus()

but this works

elements.mbs_item.requestFocus()
application.updateUI()

that is very strange that you need to do an updateUI
Also if you do an updateUI before then it doesn’t work?
thats strange.

also when and E is showing this doesn’t mean that there are changes in the data. this just means that a record is in edit mode

Hi Johan,

I didn’t need the UpdateUI for the requestFocus, it was there to update some other screen elements.

Thanks for the info on ‘e’. I always (mis)understood that it meant there was edited data waiting to be saved. I see now it was irrelevant to the issue. Anyway, I’m happy that it’s solved.