dbTalk Databases Forums  

Script Trigger on Exit Problem

comp.databases.filemaker comp.databases.filemaker


Discuss Script Trigger on Exit Problem in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bigfoot1956
 
Posts: n/a

Default Script Trigger on Exit Problem - 12-21-2010 , 11:08 PM






FMPro10 WindowsXP
Instead of using tabs on objects and fields in a layout, I am using a script trigger on exit. The associated script uses the go to field command. When the script is triggered it goes to the field specified and then returns to the first field on the layout.
How do I make the cursor stay on the field specified in the script. I havecleared the tab order from the layout completely.

Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 12:16 AM






Bigfoot1956 <vrjohnson1960 (AT) gmail (DOT) com> wrote:

Quote:
How do I make the cursor stay on the field specified in the script. I have
cleared the tab order from the layout completely.
Try go to object instead of go to field.

--
http://clk.ch

Reply With Quote
  #3  
Old   
Bigfoot1956
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 06:42 AM



go to object did not work. still returns to first field on layout.

Reply With Quote
  #4  
Old   
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 10:35 AM



Does the object have a name? This is NOT the field name (although, if you
wanted, you could use the field name as object name) The object name is
assigned after you have placed the object on a layout.

Hou je goed / keep well,

Ursus

"Bigfoot1956" schreef in bericht
news:6c072ea5-3fb6-4b59-a36c-fc2c9be818d6 (AT) glegroupsg2000goo (DOT) googlegroups.com...

go to object did not work. still returns to first field on layout.

Reply With Quote
  #5  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 11:28 AM



On 12/21/2010 9:08 PM, Bigfoot1956 wrote:
Quote:
FMPro10 WindowsXP
Instead of using tabs on objects and fields in a layout, I am using a script trigger on exit. The associated script uses the go to field command. When the script is triggered it goes to the field specified and then returns to the first field on the layout.
How do I make the cursor stay on the field specified in the script. I have cleared the tab order from the layout completely.
It sounds like maybe you have a Commit Record step in your script? That
would likely reset things back to the first field. If you really need
the Commit step, then you'll want to save the get(activefieldname) to a
variable before the commit, so that you can refer back to it on the Go
To Field step.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg
FM Professional Solutions, Inc. Los Angeles

FileMaker Certified Developer
Associate Member, FileMaker Business Alliance

Reply With Quote
  #6  
Old   
Bigfoot1956
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 02:47 PM



Naming the object was part of the problem.
Still goes to the first field.
The last line of the script is the goto object.
I added a pause script for 5 sec.
Cursor goes to the object and then when the script ends it returns to the first field.
There is no additional scriting.

I can even tab through additional fields during the 5 sec wait. It then returns to the first field.

I had some required entry fields. I removed the requirements. No Help.

Any more ideas?

Thanks a bunch

Reply With Quote
  #7  
Old   
Grip
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 03:48 PM



On Dec 22, 1:47*pm, Bigfoot1956 <vrjohnson1... (AT) gmail (DOT) com> wrote:
Quote:
Naming the object was part of the problem.
Still goes to the first field.
The last line of the script is the goto object.
I added a pause script for 5 sec.
Cursor goes to the object and then when the script ends it returns to thefirst field.
There is no additional scriting.

I can even tab through additional fields during the 5 sec wait. *It then returns to the first field.

I had some required entry fields. *I removed the requirements. No Help.

Any more ideas?
All a script trigger does is run a script, it doesn't interrupt
anything else. So, you tab to leave a field, that triggers the script.
After the script runs, the triggering action (in this case, the tab)
continues and you go to the next field in the tab order.

You can interrupt the triggering action from continuing. Place an Exit
Script[] script step at the end of your triggered script. For a
result, enter False.

Exit Script[False}

That should take care of it.

Grip

Reply With Quote
  #8  
Old   
Bigfoot1956
 
Posts: n/a

Default Re: Script Trigger on Exit Problem - 12-22-2010 , 08:39 PM



Exit Script[False}

Works like a charm

Thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.