Jump to content

Recommended Posts

14 minutes ago, Wim Decorte said:

And you can search directly on that field.  If you are not familiar with related searches then experiment a bit with it until you are comfortable with it.

So, basically, in a nutshell: If I just have a relationship setup and use that related field on the layout, I'm forever going to see the oldest entry ever made under that relationship listed there unless I've got some sorting method applied in that layout or to that relationship?

First <--> Oldest, meaning if I add 0, 1, 2, 3, entries .. and at a later date delete 1 & 2, add a 4, 5, 6... that 3 being the oldest in the relationship at that point would be the one I would see in that field?

This part should be a different thread anyway.

Link to post
Share on other sites

Only a sort in the relationship definition would change what related record shows up.  Not any kind of sorting of the parent records (the layout).

And yes: in the example you give, #3 would be the one show since it is the oldest surviving one in creation order after you delete #1 and #2.

Link to post
Share on other sites
2 hours ago, Tony Diaz said:

I'm forever going to see the oldest entry ever made under that relationship listed there

Yes -  but since your title is "related searches" it should be clarified that searching the child field will search in all child records, not just the first ones. 


Link to post
Share on other sites

Yes.. I understand that .. a found record from any of those results would not necessarily show the found result on the layout if the matched data is in a field not programmed to show on the layout.

That's what pop-overs and "hide if" scripting on the layout. :)

Link to post
Share on other sites

Good distinction to keep in mind.

Searching on a related field will yield a found set of all parents records who have a matching related record among all its related records.  Not parents where the first related record matches.

Visually that may throw you off if you don't show a portal of all related records.

Of course if you want to do a search where only the 'main' (aka first) publisher matches then you can loop through the initial found set after doing the search and omit the ones where that first related record doesn't match.

2 minutes ago, Tony Diaz said:

a found record from any of those results would not necessarily show the found result on the layout if the matched data is in a field not programmed to show on the layout.

I don't think I follow what you're saying here.  If you do a search from a layout and there are no scripts or triggers involved that would change the layout then the found set will be in the layout you did the search on.  Whether you search in a field that belongs to the TO that the layout is based on, or a related field.  If you are on a layout for books you will always get a found set of books, even if you search the related publishers field.

Link to post
Share on other sites

I mean that if I search for a value in that related table that happens to be newer, that the record when loaded may not show me that value if I'm only seeing the oldest related value, as mentioned previously.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Similar Content

    • By Todd Dignan
      I have a client that has been using a send email script step  that brings up the outlook email client on the desktop.  This as worked for years no problem.  It has stopped work on 3 of 35 computers within the last two weeks.  I talked with there IT personal and they have assured me that no updates have happened.  The actual error is -
      Microsoft Office Outlook
      Either there is no default mail client or the current mail client cannot
      fulfill the messaging request.  Please run Microsoft Outlook and set it as
      the default mail client.
      I have double checked with system default  and Outlook's settings.  Both are set to default.
      The client is using the latest version of office 360's and the latest version of FileMaker 18 advance. Both 64bit.
      Any suggestions are welcome.

    • By tbcomputerguy
      I have an excel sheet that controls bills of ladings for a forestry company.  In the example you can see that there is lots going on with this Bill.  It has a payperiod, mill, truck that delivered it, etc.
      I would like setup a database to monitor this.  The fields CT1, CT2, Skid1, Skid2. PROC1, PROC2 are all contractor numbers.  There are 6 contactors.  The percentages in each line are the amount of the volume they performed  In the third line there is a value in CT1 only...they get 100% of the volume.  I can figure out most of this, but am stumped on how I can monitor when a contractor does multiple jobs..ie in line one, contractor 5, cuts and skids.  All 6 contractors could be involved in one BOL. Each one of these jobs, cutting, skidding and processing each has their own respective rate of pay as well.   I think i need a way to break down each line so that I can produce pay summaries for each of the contractors.  I had started this years ago, and thought I asked in a forum, but can't remember where.  Nonetheless, they stopped using multiple contractors per load...Now they have returned, so I am back at it.  So if this is a repost from years ago I apologize.  
      Thanks in Advance

    • By dancer5678
      I am using Filemaker Server 18 on Windows Server 2012 R2
      Been using it for years with no issues
      Currently when I log in to the console it is very sluggish.
      When I get to the Dashboard it shows No databases, then it auto refreshes and the database list appears.
      Within 15 seconds of scrolling the database list to open files the screen refreshes. This situations is happening over and over in a loop.
      Any Thoughts on what is causing this issue?
    • By stevaroni
      I get an error 3 when using a script to Export Records via WebDirect. Using FileMaker Server 18 and have tried both Safari and Chrome both with same results. I have tried using the temporary path, desktop path, and documents path. I have tried using with the automatically open and not. I have tried writing a tab delimited and comma delimited file. Does anyone have ideas I haven't yet tried?
    • By cheerfulzebra
      Hi All
      I am hoping some one can help!
      I have a table called TPM, in that table is a field "Next Due Date" Which is auto generated by creating a new record. You input the date you did the service and then it adds 3 months to that date and that appears in the Next Due Date Field.. All working...
      What I am trying to do is when the database loads it runs a script to see if there are any outstanding TPM Services to do...
      Here is the script
      Show Customer Dialog
      Message: If ( TPM::TPM Next Due Date < Get (CurrentDate ) ; "You have outstanding TPM services" ; "You have no outstanding services")
      I thought it would be that simple. So I created a TPM Due date Less that Current date and ran the script...."You have outstanding TPM Services"...GREAT! Then I deleted that record and ran the script again...""You have outstanding TPM Services" Oh!!! That isnt true!
  • Who Viewed the Topic

    3 members have viewed this topic:
    comment  LAIRY  bdonelson 

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.