2 of 2 people found this helpful
Go to a layout that is based on the Clients table.
thanks! That worked!
This is one of the odd aspects of importing into FileMaker.
If you were setting up the import records script step, that drop down lets you pick any target table (occurrence) In the list. In a manual import, you can only pick "new table" or the table occurrence specified for your current layout, presumably so that you can see the results of your import.
If you were setting up the import records script step, that drop down lets you pick any target table (occurrence) In the list.
Commands in a script are context-agnostic so you can execute (and, equally important, write!) them in any context, even assuming pre-conditions that don't exist yet.
Ensuring that a given step / configuration makes sense in a given context is the coder's responsibility - so if a script has an Import step that imports a file into the Clients table, it had better switch to an appropriate layout first.
While often useful in order to do post import processing on the found set produced by the import, it is not strictly necessary that you switch to the layout before your script imports records.