Hello!
You could also use the rich UI job scheduler to run a function with a short delay, like in the following example.
import egl.javascript.Job;import dojo.widgets.DojoTextField;handler DemoHandler type RUIhandler{initialUI = [demoTextField], onConstructionFunction = start} demoTextField DojoTextField{}; function start() new Job{runFunction = setFocusJob}.schedule(100); // run function after construction is complete end function setFocusJob() demoTextField.focus(); endend
Günter_Wagner