dbTalk Databases Forums  

Help With Layout Focus

comp.databases.filemaker comp.databases.filemaker


Discuss Help With Layout Focus in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
squeed2000@yahoo.com
 
Posts: n/a

Default Help With Layout Focus - 08-14-2005 , 08:01 AM






I have a few scripts that are cuting and pasting things to perform
finds, but that means that I have to have the field that I am pasting
or cutting on the layout.

I don't want the user to see that field so I made it the same color as
the layout, so it is somewhat invisible.

The problem is that after the find the focus is on the invisible field
and I have to click on the layout to show the portal related records.
How can I set the focus in a script so that it would be equivalent to
clicking anywhere on the layout ?

-S


Reply With Quote
  #2  
Old   
Al Partridge
 
Posts: n/a

Default Re: Help With Layout Focus - 08-14-2005 , 10:27 AM






At the end of the script, include script step GoToField without designating
a field to go to.

Al

<squeed2000 (AT) yahoo (DOT) com> wrote

Quote:
I have a few scripts that are cuting and pasting things to perform
finds, but that means that I have to have the field that I am pasting
or cutting on the layout.

I don't want the user to see that field so I made it the same color as
the layout, so it is somewhat invisible.

The problem is that after the find the focus is on the invisible field
and I have to click on the layout to show the portal related records.
How can I set the focus in a script so that it would be equivalent to
clicking anywhere on the layout ?

-S




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

Default Re: Help With Layout Focus - 08-15-2005 , 03:38 PM



Use the set field step, instead of copying and pasting. The field does not
have to be on the layout. Also, this prevents the user from losing whatever
clipboard s/he was using when the script ran (like if she copied a name,
then ran the script).

I started out using copy/paste. Since I started using set field, I avoid
them altogether. The exception is that with date fields prior to FM7, you
couldn't use set field to put in text characters (like ><=). For that, I
have a layout called "routine fields", and my script says freeze window, go
to layout [routine fields], insert calculated result [date , ">" & status
( currentdate ) ], go to layout [original layout]. Alternately, you can set
your string (">8/15/2005") into a text global, then set the date equal to
that text global. In FM7, though, set field works correctly even with date
fields.

--

Chris Cain
Extensitech, Inc.
ccain (AT) extensitech (DOT) com


<squeed2000 (AT) yahoo (DOT) com> wrote

Quote:
I have a few scripts that are cuting and pasting things to perform
finds, but that means that I have to have the field that I am pasting
or cutting on the layout.

I don't want the user to see that field so I made it the same color as
the layout, so it is somewhat invisible.

The problem is that after the find the focus is on the invisible field
and I have to click on the layout to show the portal related records.
How can I set the focus in a script so that it would be equivalent to
clicking anywhere on the layout ?

-S




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.