Why SC_set_focus not work

I’ve tried to put SC_SET_FOCUS ({my_filed}) onValidateSuccess script. But why when I run the application script does not seem to work.
I use it to process the data with a barcode in control app. I want to be when barcode scanning is completed, the cursor back to the ‘field’ that has been determined

Can someone help me

DId you tried sc_set_focus (‘my_filed’)?

I’ve tried all
sc_set_focus(‘my_field’)
sc_set_focus(’{my_field}’)
still not work

Did you try to use it on the OnvalidateSuccess ? The OnValidate happens before this one…

I suspect you save the record?
If so, what happens is you set the focus, then the record is saved, then the page is reloaded.
Long story short, you probably have to put it in the onLoad/onRefresh event();

jsb