Hi Peter, Depending on how the subform is set up, it may not be loaded by then. But it should work if you use SET TIMER(-1) and then call EXECUTE IN SUBFORM($subform;”ACTION”) in the timer.
HTH. -- Cannon.Smith Synergy Farm Solutions Inc. Aetna, AB Canada <can...@synergyfarmsolutions.com> <www.synergyfarmsolutions.com> > On Dec 2, 2019, at 5:32 PM, Peter Jakobsson via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > To move the cursor into a widget (in fact a derivative of Miyako’s “search” > widget) I usually use a button with CTRL-F shortcut to call “EXECUTE IN > SUBFORM($subform;”ACTION”) and then have the “ACTION” call a GOTO OBJECT in > the context of the subform. > > This works fine once the form is loaded but never works in the “On Load” > event of the widget’s host form. (Nor in the widget’s on load event which I > tried by way of completeness). > > Think I’ve run out of leads so if anyone has any hints as to how to get this > to work I’d appreciate it ! ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************