dbTalk Databases Forums  

FMP7 Mac: Coping from fields not on layout

comp.databases.filemaker comp.databases.filemaker


Discuss FMP7 Mac: Coping from fields not on layout in the comp.databases.filemaker forum.



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

Default FMP7 Mac: Coping from fields not on layout - 02-19-2007 , 04:24 PM






I have a very cluttered input page, which also as on it the result
fileds of calculations,

I have created a button at the top of the page that runs a script to
copy the complete contents of a calc field. When it does so, it leaves
the field "expanded to a larger size" and I have to click elsewhere to
get back tot he to of the layout.

Is there a way to direct a button to copy the contents of the calc
field and return to the top of the page? Or is there a way to put that
calc filed on a different layout and copy it from there, then return
tto a layout that does not have the calc field?

Puzzled


Reply With Quote
  #2  
Old   
Helpful Harry
 
Posts: n/a

Default Re: FMP7 Mac: Coping from fields not on layout - 02-19-2007 , 05:29 PM






In article <2007021914240016807%paint4life@pacbellnet>, DD
<paint4life (AT) pacbell (DOT) net> wrote:

Quote:
I have a very cluttered input page, which also as on it the result
fileds of calculations,

I have created a button at the top of the page that runs a script to
copy the complete contents of a calc field. When it does so, it leaves
the field "expanded to a larger size" and I have to click elsewhere to
get back tot he to of the layout.

Is there a way to direct a button to copy the contents of the calc
field and return to the top of the page? Or is there a way to put that
calc filed on a different layout and copy it from there, then return
tto a layout that does not have the calc field?

Puzzled
It depends on why you're copying that data, you may not actually need
to copy it at all if you're using it directly in FileMaker itself.

Assuming you're copying it to paste in another application (for
example), then the field does have to be on the "current" layout to be
copied.

One way around your problem may be to use a separate Layout to contain
the field and use the Freeze Window command to stop the user seeing the
change-over.
eg.
Freeze Window
Go To Layout [LayoutWithFieldToCopy]
Copy [Select, FieldToCopy]
Go To Layout [OriginalLayout]

But I'm not sure if the Copy command forces a screen update.

If it does, then you may as well leave the field on the current layout
and simply Exit it after copying.
eg.
Copy [Select, FieldToCopy]
Exit Record

To get back to the top of the record you may have to add some extra
commands to go to a field near the top.
eg.
Copy [Select, FieldToCopy]
Go To Field [FieldNearTop]
Exit Record



Helpful Harry
Hopefully helping harassed humans happily handle handiwork hardships ;o)


Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: FMP7 Mac: Coping from fields not on layout - 02-20-2007 , 08:51 AM



Try a Commit Record step after the Copy step.

Matt

On 02/19/2007 17:24:01 DD <paint4life (AT) pacbell (DOT) net> wrote:

Quote:
I have a very cluttered input page, which also as on it the result fileds
of calculations,

I have created a button at the top of the page that runs a script to copy
the complete contents of a calc field. When it does so, it leaves the
field "expanded to a larger size" and I have to click elsewhere to get
back tot he to of the layout.

Is there a way to direct a button to copy the contents of the calc field
and return to the top of the page? Or is there a way to put that calc
filed on a different layout and copy it from there, then return tto a
layout that does not have the calc field?

Puzzled

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

Default Re: FMP7 Mac: Coping from fields not on layout - 04-09-2007 , 03:17 PM



On 2007-02-19 15:29:51 -0800, Helpful Harry
<helpful_harry (AT) nom (DOT) de.plume.com> said:

Quote:
In article <2007021914240016807%paint4life@pacbellnet>, DD
paint4life (AT) pacbell (DOT) net> wrote:

I have a very cluttered input page, which also as on it the result
fileds of calculations,

I have created a button at the top of the page that runs a script to
copy the complete contents of a calc field. When it does so, it leaves
the field "expanded to a larger size" and I have to click elsewhere to
get back tot he to of the layout.

Is there a way to direct a button to copy the contents of the calc
field and return to the top of the page? Or is there a way to put that
calc filed on a different layout and copy it from there, then return
tto a layout that does not have the calc field?

Puzzled

It depends on why you're copying that data, you may not actually need
to copy it at all if you're using it directly in FileMaker itself.
I use my filemaker data in kind of a merge way... I have a calc field
that concatenates text and field data to form one long HTML-ready
string. Using the same data, I have other calc fields that help create
HTML strings for different uses (blog or eBay listings)

Quote:
Assuming you're copying it to paste in another application (for
example), then the field does have to be on the "current" layout to be
copied.
yes... I am switching to a web browser in all cases, for the Paste


Quote:
One way around your problem may be to use a separate Layout to contain
the field and use the Freeze Window command to stop the user seeing the
change-over.
eg.
Freeze Window
Go To Layout [LayoutWithFieldToCopy]
Copy [Select, FieldToCopy]
Go To Layout [OriginalLayout]

But I'm not sure if the Copy command forces a screen update.
Didn;t know about Freeze Window. This seems to have solved my problem,
for the most part. But...
Quote:
If it does, then you may as well leave the field on the current layout
and simply Exit it after copying.
eg.
Copy [Select, FieldToCopy]
Exit Record
I don't have the command Exit record in the Script List (FMP7 Mac OS)


the "Commit record" command, just tried, seems to solve it all. Thanks!



Reply With Quote
  #5  
Old   
DD
 
Posts: n/a

Default Re: FMP7 Mac: Coping from fields not on layout - 04-09-2007 , 03:18 PM



Sweet! that did it!

Thanks!

On 2007-02-20 06:51:05 -0800, Matt Wills <I'm (AT) witz (DOT) end> said:

Quote:
Try a Commit Record step after the Copy step.

Matt

On 02/19/2007 17:24:01 DD <paint4life (AT) pacbell (DOT) net> wrote:

I have a very cluttered input page, which also as on it the result fileds
of calculations,

I have created a button at the top of the page that runs a script to copy
the complete contents of a calc field. When it does so, it leaves the
field "expanded to a larger size" and I have to click elsewhere to get
back tot he to of the layout.

Is there a way to direct a button to copy the contents of the calc field
and return to the top of the page? Or is there a way to put that calc
filed on a different layout and copy it from there, then return tto a
layout that does not have the calc field?

Puzzled



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.