dbTalk Databases Forums  

Copy a set of portal of a record into the portal of a new record

comp.databases.filemaker comp.databases.filemaker


Discuss Copy a set of portal of a record into the portal of a new record in the comp.databases.filemaker forum.



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

Default Copy a set of portal of a record into the portal of a new record - 10-27-2005 , 12:17 PM






Hi
I am new to file maker and I am trying to convert a access data base to
Filemaker.
I am encountering a problem on how to copy the portal data of a record
to the portal data of a new record.
I have a table that contains the batch informations and a table that
contains the ingredients used for the batch. Both table are link
together by the batch number field. I have a layout that display in a
portal for each batch the ingredients used for this particular batch.
How can I make a script that will enable me to copy the ingredient used
in a specific batch into the portal of an other batch?

Any help is apreciated.


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

Default Re: Copy a set of portal of a record into the portal of a new record - 10-27-2005 , 09:12 PM






I assume your displaying the portal of ingredients from the Batch
record.
Create a script that goes to the related ingredient records for the
original Batch record, so your now at a layout displaying ingredients.
Loop through the records and set a global text field to the ingredients
separated by carriage returns.
Go back to the Batch record and set a global number to the ID of the
new Batch record.
Go back to the Ingredients screen and create records until the global
text field is empty by creating an ingredient record, setting it to the
first line of the global field, removing that line of the global.
You'll also have to set the Batch ID in the newly created records.

If you're using FM7 or 8 you could simply create a utility table in one
of your files, import the ingredient records into it, and from there
back into the ingredient file.


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

Default Re: Copy a set of portal of a record into the portal of a new record - 10-27-2005 , 11:09 PM



I am using filemaker 8. I am going to try your second solution that
looks simpler.

thank you


FP wrote:
Quote:
I assume your displaying the portal of ingredients from the Batch
record.
Create a script that goes to the related ingredient records for the
original Batch record, so your now at a layout displaying ingredients.
Loop through the records and set a global text field to the ingredients
separated by carriage returns.
Go back to the Batch record and set a global number to the ID of the
new Batch record.
Go back to the Ingredients screen and create records until the global
text field is empty by creating an ingredient record, setting it to the
first line of the global field, removing that line of the global.
You'll also have to set the Batch ID in the newly created records.

If you're using FM7 or 8 you could simply create a utility table in one
of your files, import the ingredient records into it, and from there
back into the ingredient file.


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.