dbTalk Databases Forums  

Create child records from list layouts

comp.databases.filemaker comp.databases.filemaker


Discuss Create child records from list layouts in the comp.databases.filemaker forum.



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

Default Create child records from list layouts - 12-14-2005 , 02:52 PM






FMP 8: by script, I find one or more records in a list layout (mostly
less than 10).

For every found record I need a child record in a different table. How
shall I do that?

A) Go to the other table and import the records looks easy (but there
will be problems if someone changes the name of the file).

B) Export serial no to a csv, go to the other table, import the csv:
trouble ahead in a network?

C) Loop through the recors, grab the serial no. with a variable, go to
the other table, create a new record, insert variable, go back to the
first table, go to next records: Looks like fun - maybe a performance
issue?

Any suggestions?
--
http://clk.ch

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

Default Re: Create child records from list layouts - 12-14-2005 , 03:48 PM






How about using a Portal?

G

Christoph Kaufmann wrote:
Quote:
FMP 8: by script, I find one or more records in a list layout (mostly
less than 10).

For every found record I need a child record in a different table. How
shall I do that?

A) Go to the other table and import the records looks easy (but there
will be problems if someone changes the name of the file).

B) Export serial no to a csv, go to the other table, import the csv:
trouble ahead in a network?

C) Loop through the recors, grab the serial no. with a variable, go to
the other table, create a new record, insert variable, go back to the
first table, go to next records: Looks like fun - maybe a performance
issue?

Any suggestions?
--
http://clk.ch


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

Default Re: Create child records from list layouts - 12-15-2005 , 01:03 AM



"Grip" hat geschrieben:

[How to create a child for every record in a found set]
Quote:
How about using a Portal?
Is there a script step for the creation of a portal row?
--
http://clk.ch


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

Default Re: Create child records from list layouts - 12-15-2005 , 01:03 AM



Christoph Kaufmann hat geschrieben:

Quote:
A) Go to the other table and import the records looks easy
Oh my - it isn't when I try data seperation. The found set is in the
interface file, whereas the import source has to be the data file, and
there's no found set there.
--
http://clk.ch


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

Default Re: Create child records from list layouts - 12-15-2005 , 02:18 AM



Christoph Kaufmann wrote:
Quote:
Christoph Kaufmann hat geschrieben:

A) Go to the other table and import the records looks easy

Oh my - it isn't when I try data seperation. The found set is in the
interface file, whereas the import source has to be the data file, and
there's no found set there.
You can do your import completely from within the interface file. As
long as you have a Table Occurrence set up in your interface file for
your source and target tables, you can just get your found set in the
interface file and do the import.

For nearly all purposes, there is effectively no difference between a TO
in one file and the actual data table in another file. No speed
difference, no referential difference.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Howard Schlossberg (818) 883-2846
FM Pro Solutions Los Angeles, California

FileMaker 7 Certified Developer
Associate Member, FileMaker Solutions Alliance


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

Default Re: Create child records from list layouts - 12-15-2005 , 02:54 AM



Howard Schlossberg <howard (AT) antispahm (DOT) fmprosolutions.com> hat
geschrieben:

Quote:
You can do your import completely from within the interface file.
I bang my forehead - thank you. I did not try that because it's way
too simple.
--
http://clk.ch


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

Default Re: Create child records from list layouts - 12-15-2005 , 12:58 PM



Go to Portal Row [First] works as does
Go to Field [Field in portal]

G


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.