![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |