![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I need help scripting the following take a found set in fileA w records w unique ids - loop through found set grabbing unique ids, and putting them into a global field called G_Aid - for each record in foundset, whizz over to other file called fileB, and layout 'join_table' which has two fields- Aid, Savid - create new record in 'join_table' - dump contents of G_Aid in join_table::Aid - return to fileA and move on to next record in found set and start process over - end loop when reach end of found set in fileA for some reason I can't get fileB to show up in scriptmaker when scripting from fileA, though fields in fileA and fileB are related and I've made a file reference to fileB in fileA i'm not a full time FMPro by any means: any light a.o can shine on the problem would be good Marmot |
|
- create new record in 'join_table' - dump contents of G_Aid in join_table::Aid |
#3
| |||
| |||
|
|
In article <1182274993.803075.105... (AT) w5g2000hsg (DOT) googlegroups.com>, thdyo... (AT) googlemail (DOT) com wrote: I need help scripting the following take a found set in fileA w records w unique ids - loop through found set grabbing unique ids, and putting them into a global field called G_Aid - for each record in foundset, whizz over to other file called fileB, and layout 'join_table' which has two fields- Aid, Savid - create new record in 'join_table' - dump contents of G_Aid in join_table::Aid - return to fileA and move on to next record in found set and start process over - end loop when reach end of found set in fileA for some reason I can't get fileB to show up in scriptmaker when scripting from fileA, though fields in fileA and fileB are related and I've made a file reference to fileB in fileA i'm not a full time FMPro by any means: any light a.o can shine on the problem would be good Marmot It sounds like you need to create a script in fileB that performs the actions that affect that file's records. From your outline, it would be these two steps: - create new record in 'join_table' - dump contents of G_Aid in join_table::Aid From the script in fileA, one of your steps will be "Perform Script (External)", and that is how you will call the script in fileB. Each time, after the fileB script is executed, control will return to the script in fileA and it will continue with the loop. Greg |
#4
| |||
| |||
|
|
take a found set in fileA w records w unique ids - loop through found set grabbing unique ids, and putting them into a global field called G_Aid - for each record in foundset, whizz over to other file called fileB, and layout 'join_table' which has two fields- Aid, Savid - create new record in 'join_table' - dump contents of G_Aid in join_table::Aid - return to fileA and move on to next record in found set and start process over - end loop when reach end of found set in fileA for some reason I can't get fileB to show up in scriptmaker when scripting from fileA, though fields in fileA and fileB are related and I've made a file reference to fileB in fileA |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |