with this method you can search on name and place the same way.
Everything is working fine, but..
it only works when there is a related record with a value in: plaats.
for example: I have one record. bedrijfsnaam has value: test
and there are no adresses attached to this record,
the method is returning: there are no record found!
is this right behaviour?
That’s corrrect.
The search only performs on existing relation.(relation_to_addresses)
If you don’t have an address attached to your relation it’s left out of the search.
We have have this on our list to be fixed.
underlying SQL will then do something like:
select columns from relations where bedrijfsnaam = “#%”+globals.zoekrelaties+“%”
UNION
select columns from relations, addresses where addresses.plaats = “#%”+globals.zoekrelaties+“%”