Re: [Dan Maitland] Pulling records from another table.
Hi Dan,
It's because of your form input:
?name=Castle%20Building
Any getRecords() calls with "allowSearch" will automatically filter using form input that matches up with field names. allowSearch is enabled by default. Since your "agent" section has a "name" field, getRecords() is automatically adding an extra condition to your where clause to find only records which have name = "Castle Building".
It's probably good practice to disable allowSearch everywhere except in getRecords() calls where you explicitly want searching to occur.
Does that clear things up?
All the best,
Chris