![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Here is my question: How do I import the services from the old version to the new version since in the old one I have 4 services in the same record and in the new version I want to have a record for each service. |
#3
| |||
| |||
|
|
Claude Carlos <carlos.cl (AT) videotron (DOT) ca> wrote: Here is my question: How do I import the services from the old version to the new version since in the old one I have 4 services in the same record and in the new version I want to have a record for each service. Oddly enough, there is a feature in FM that will make this easier for you. Make a repeating field with four repeats. Create a script that will: Loop Set Field (repeatingfieldname, [1], Service1) Set Field (repeatingfieldname, [2], Service2) do other 2 fields into repeats 3 & 4 Go to next record, exit after last End loop That number in brackets is the repetition number, you select that in the choose field dialog, at the bottom. Once you get all your values into the repeating field, and creating your child file to receive the services, you can import the records into the child file. When you are importing, choose the option to "Split repeating fields into separate records", and match your fields. Now, you'll have one child record for each filled repeat, with the BillID on each one. You can create the relationship from Billing to Services and show the child records in a portal. Then delete the repeats and your old Servicex4 fields. Lynn Allen -- Allen & Allen Semiotics www.semiotics.com FSA Associate Filemaker Design & Consulting |
#4
| |||
| |||
|
|
Thanks Lynn I'll give that a try. It sounds a lot less complicated then I anticipated |
#5
| |||
| |||
|
|
Claude Carlos <carlos.cl (AT) videotron (DOT) ca> wrote: Thanks Lynn I'll give that a try. It sounds a lot less complicated then I anticipated Well, I should also have said (it was a late night last night and not enough sleep) that you'll need a repeating field for each field in your services, if you have separate price, quantity and description fields, or tax fields or such. Gather all the data that needs to be split into repeats. Then in your child file, there are NO repeating fields, just the single Price, Quantity, Description fields, and you match the repeaters in the parent file to the single fields in the child file. There, now I feel better. TIme for a nap? Lynn Allen -- Allen & Allen Semiotics www.semiotics.com FSA Associate Filemaker Design & Consulting |
![]() |
| Thread Tools | |
| Display Modes | |
| |