
Hello to everyone.
I want to use setFocus() method for a control of a sysOperationFramework form to move the cursor directly to a specific control.
I use the UIBuilder class for that and more specifically the postRun() method.
everything I am trying to use like enable(), visible(), etc works fine.
But setFocus() method doesn't seem to work for some reason. I also tried to do it in postBuild() but I had an error in stack trace that said that setFocus() does not exist.
The block below describes the code I use.
public void postRun()
{
FormReferenceControl plainText;
super();
plainText = this.bindInfo().getDialogField(contract,
methodStr(MyContract, parmPlainText)).control();
plainText.setFocus();
}
Does anyone know what could be the reason that this method does not work?