Cannon,
YOU WIN!!!
We did the following (so everyone else knows:
1) Create a new method pEst_SF_SetTimer which simply calls
SET TIMER (-1)
2) Turn on the On Timer even on the subform
3) Add the following code to the form method of the subform
Case of
: ($evt=On Timer)
GOTO OBJECT([Estimate]Job_Name)
SET TIMER(0)
End case
4) Add the following code to the On Load case of the parent form
EXECUTE METHOD IN SUBFORM("estSubform";"pEst_SF_SetTimer") //set timer for
subform
The GOTO OBJECT call is then executed in the context of the subform AFTER the
full ON LOAD cycle has finished, and has the added benefit of automatically
having all of the text highlighted so we don’t have to worry about the
HIGHLIGHT TEXT shortcoming.
Piece of cake (4 hours later). <SIGH>
I guess I should throw out the “I’d like to make a phone call” statement
earlier in the game and get to the prize more quickly. :-)
Randy
----------------------------------------------------------------------
Randy Jaynes
Senior Programmer and Customer Support
http://printpoint.com <http://printpoint.com/> • 845.687.3741 • PrintPoint, Inc
• 57 Ludlow Lane • Palisades, NY 10964
> On Nov 15, 2017, at 12:52 PM, Cannon Smith via 4D_Tech <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hi Randy,
>
> You have to call the GOTO OBJECT in the next execution cycle of the form. One
> way to do this is call SET TIMER(-1) and then run the GOTO OBJECT in the On
> Timer event.
>
> HTH.
>
> --
> Cannon.Smith
> Synergy Farm Solutions Inc.
> Hill Spring, AB Canada
> 403-626-3236
> <[email protected] <mailto:[email protected]>>
> <www.synergyfarmsolutions.com <http://www.synergyfarmsolutions.com/>>
>
>
>> On Nov 15, 2017, at 10:34 AM, Randy Jaynes via 4D_Tech <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>> The idea here is that I open the parent form and I want to be sitting in the
>> first field on the subform with all of its text highlighted.
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ: http://lists.4d.com/faqnug.html <http://lists.4d.com/faqnug.html>
> Archive: http://lists.4d.com/archives.html
> <http://lists.4d.com/archives.html>
> Options: http://lists.4d.com/mailman/options/4d_tech
> <http://lists.4d.com/mailman/options/4d_tech>
> Unsub: mailto:[email protected]
> <mailto:[email protected]>
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************