Ok, I'll try to make things easier by looking for something else. Let's start all over againg.
I have 2 layouts:
- Layout A, with contact information, e.g. NAME, ADDRESS, CITY and PHONE NUMBER
- Layout B, with the same contact information fields as in Layout A, but also with other fields about certain details, e.g. HAIR COLOUR, HAIR LENGTH, WEIGHT
In Layout A I fill in the records of 20 people. When I go to Layout B I see those same people (since Layout B contains the same fields).
Now I want one more Layout, which will be the first layout to see when we start Filemaker. On this page I want to place buttons:
- by clicking the first button, called CONTACT for instance, we go to Layout A. This works fine
- by clicking the second button, called DETAILS, I want the following to happen:
I want to make a script with search criteria and the results to show in Layout B. After this I can add detail information in the extra fields.
Now let's forget about the FLEXPOOL-thingy from before. Let's just say I want to search for all the people that are called John.
What I would to is:
1. Make the button in the first layout
2. Go to Scriptmaker and make a new script called NAMESEARCH
This is what my script would look like:
Go to layout ["Layout B"]
Find mode []
Set Field ["NAME = John""]
Perfom find[]
It doesn't work; Filemaker says there are no records (but i know there are!)