dbTalk Databases Forums  

Filling many numbered fields by script

comp.databases.filemaker comp.databases.filemaker


Discuss Filling many numbered fields by script in the comp.databases.filemaker forum.



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

Default Filling many numbered fields by script - 06-28-2005 , 12:44 PM






To fill many (numbered) fields in a record, is using a layout & "goto
next field" the way to go?

Or is there another solution with indirect fields?

Gert

Reply With Quote
  #2  
Old   
ttrimble
 
Posts: n/a

Default Re: Filling many numbered fields by script - 06-28-2005 , 03:55 PM






Gert Kok wrote:
Quote:
To fill many (numbered) fields in a record, is using a layout & "goto
next field" the way to go?

Or is there another solution with indirect fields?

Gert
That is one approach and will work just fine. You should also take a
look at the GetField function for getting the name of the field. You
can also pass field names as a parameter when calling another script.
Not sure of what you're trying to accomplish but the combination of the
above items should get you started.

Tim


--
================================================== ========================
Tim Trimble - timdottrimbleatgmaildotcom
http://www.timothytrimble.info
Home of The ART of Software Development Blog
================================================== ========================


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

Default Re: Filling many numbered fields by script - 06-28-2005 , 03:56 PM



In article <11c3335dd5he879 (AT) corp (DOT) supernews.com>, Gert Kok
<gertkok (AT) keraweb (DOT) nl> wrote:

Quote:
To fill many (numbered) fields in a record, is using a layout & "goto
next field" the way to go?

Or is there another solution with indirect fields?
It depends on what you're trying to achieve.

You can use the "layout and Go To Next Field" within a loop, or you can
use a pile of separate Set Field script commands. The Set Field command
doesn't require the field to be on the current layout.

If it's necessary (or easier) to use the loop method, then you can use
the Freeze Window command just before the Go To Layout command (making
sure the Refresh option is turned off) so that the user doesn't see the
layout change ... although I haven't tried it with a looping "Go To
Next Field" which may well make the window update anyway.

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


Reply With Quote
  #4  
Old   
Gert Kok
 
Posts: n/a

Default Re: Filling many numbered fields by script - 06-30-2005 , 02:32 AM



The goal is to fill tables with count of frequency, 50-100 fields.

So the loop should be able to access 50-100 different target fields.

With using the GetField() function, I could not find a way how to
describe the target field using GetField or Evaluate.

The target field is chosen during scripting, and is hardwired in the
scriptstep, is my conclusion.

The solution with layout & goto next field works, is a little slow.

Gert

ttrimble wrote:
Quote:
Gert Kok wrote:

To fill many (numbered) fields in a record, is using a layout & "goto
next field" the way to go?

Or is there another solution with indirect fields?

Gert


That is one approach and will work just fine. You should also take a
look at the GetField function for getting the name of the field. You
can also pass field names as a parameter when calling another script.
Not sure of what you're trying to accomplish but the combination of the
above items should get you started.

Tim



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.