search in portal

do you know how to search in portal?
i get wrong data after searching in portal.
Hiroyuki TamuraField EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

billmercerCommented:
If you do a Find for records based on entering criteria in a portal, the records returned will be the ones in the main layout that relate to the criteria in the portal.

For example, if you have a database of animals, like cows, horses, and goats, and a portal showing what foods they eat, if you do a Find for "hay" in the portal, the found set will include all animals that have "hay" as one of their foods, even if they also eat other foods. The portal for each record will still show all the related records for that animal.

If you want to filter or restrict which related records appear, you need to use a different approach.
You can either modify the portal relationship so that it shows only the desired results, or you can use a script that switches to a separate layout and displays only the desired records that way.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lesouefCommented:
Another approach maybe?
When in find mode, no record is active, therefore, at that very moment, the relationship is disabled; so there is no more filtering done by the portal, it is a simple pass through for all records of the related table.
The easiest way for me is:
- to go to related records in a another window using a layout related to the sub table, display "only related records/match current record only" and then do a find here using "constrain found set", to narrow down the record set with the find criteria.
But doing the find directly in the sub table is far easier in most situations, simply using 2 fields, the one you need + the ID allowing to isolate the parent record.
0
Hiroyuki TamuraField EngineerAuthor Commented:
thank you, billmercer and lesouef:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.