dbTalk Databases Forums  

Setting field focus in FM5

comp.databases.filemaker comp.databases.filemaker


Discuss Setting field focus in FM5 in the comp.databases.filemaker forum.



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

Default Setting field focus in FM5 - 11-02-2009 , 12:30 PM






Hello,
I'm using Go to Portal Row functions to navigate a data entry layout.
FM5 WinXP. I see where Filemaker keeps the field focus the same
whichever portal row the "Go to" step moves to. I would rather have
the focus default to the field that is first in the tab order with
each Go to Portal Row script. Well, that's fine, using Go to Field
after Go to Portal Row. There's a wrinkle there however. That field
first in the tab order has one copy stacked on the other per a great
tip from Scriptology. The upper copy of the field was last to be set
on the layout while a Go to Field scripted button goes, per Filemaker
protocol, to the first copy of the field which opens a robust value
list. If the user manually or by tabbing enters that field, the value
list doesn't open, they must click the button next to it. So, I'd like
my Go to Portal Row script to finish by entering the upper/non-value
list copy of the field so the value list doesn't open. Use of the Go
to Field step forces the value list. So, is there a way to trigger the
Tab key in a script? I'm not seeing that it's possible. Sorry this is
convoluted.
Bill

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: Setting field focus in FM5 - 11-02-2009 , 06:22 PM






"bilbod" <bjaynes (AT) montanaport (DOT) net> wrote

Quote:
Hello,
I'm using Go to Portal Row functions to navigate a data entry layout.
FM5 WinXP. I see where Filemaker keeps the field focus the same
whichever portal row the "Go to" step moves to. I would rather have
the focus default to the field that is first in the tab order with
each Go to Portal Row script. Well, that's fine, using Go to Field
after Go to Portal Row. There's a wrinkle there however. That field
first in the tab order has one copy stacked on the other per a great
tip from Scriptology. The upper copy of the field was last to be set
on the layout while a Go to Field scripted button goes, per Filemaker
protocol, to the first copy of the field which opens a robust value
list. If the user manually or by tabbing enters that field, the value
list doesn't open, they must click the button next to it. So, I'd like
my Go to Portal Row script to finish by entering the upper/non-value
list copy of the field so the value list doesn't open. Use of the Go
to Field step forces the value list. So, is there a way to trigger the
Tab key in a script? I'm not seeing that it's possible. Sorry this is
convoluted.
Don't ask me why the Go to Field command doesn't include "Next" and
"Previous" options (as found in Go to Record / Page), but there is a
separate Go To Next Field command which you can use instead.

Knowing the Tab order you can use multiple copies of the command to get to
the correct field. For example, if the field you want to be in is two Tabs
after the incorrect field, the Script would be:

Go to Field [Relationship::WrongPortalField]
Go to Next Field []
Go to Next Field []

The only hiccup here is that the field you do want must be in the Tab order
(not excluded).

Helpfull Harry )

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

Default Re: Setting field focus in FM5 - 11-02-2009 , 08:30 PM



Thanks Harry,
I see that script step and you've given me something to chew on. The
field I want to go to is number one in the tab order; looking forward
to some scripting mayhem!
Best,
Bill

Reply With Quote
  #4  
Old   
bilbod
 
Posts: n/a

Default Re: Setting field focus in FM5 - 11-02-2009 , 08:42 PM



I've got it working just great. I go to the original field that pops a
value list and is out of the tab order; then Go to Field Next..goes to
number 1! The value list doesn't pop and I've got my user right where
I want em!
Bill

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.