Jump to content

Related Searches and such.


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 Msaeed
      Hi All,
      I would like to find solve my issue, as mentioned on the topic of how can find more than fields like serial No. or Code by IOS camera. please find below the script.
       
       
       
      thank in advance for any help or support  
    • By tomp
      I'm having a problem getting BE_SMTPsend to successfully send an email with an attachment.
      No problem sending without an attachment, but when I add an attachment, I get an error 2 (not sure exactly what that means, but without the attachment, no error)
      These are the argument strings with and without attachments:

      I have tried both relative and direct file paths for the variable $attachment. Examples are:


      Both of them return an error code of 2.
      Since the 'send' without an attachment works, all the values of the fields/variables other than $attachment must be valid.
      Can anyone offer a suggestion as to what might be going on and what I might try to resolve this?
       
    • By Msaeed
      Hi All,
      As per mentioned on topic, in fact i would like to create icon ex. hour in case rigging guard the insert time.

    • By Solvax
      Hi,
      I'm trying to make a subsummary report with data from the current table and a related table.
      I never get to display the correct totals for the related table, and would therefore appreciate your help.
      First I'll try to explain the workflow:
      I have two tables called 'Voorraad_uit' (= outgoing stock) and 'Voorraad_in' (= incoming stock) which are related by delivery number.
      Data is first entered in 'Voorraad_in' (= incoming stock) and then related records are created in 'Voorraad_uit' when an incoming stock item is partly or completely shipped.  This second table contains mainly the outgoing amount and a unique outgoing delivery ID.

      As a consequence, one record in table 'Voorraad_in' (= incoming stock) can have one ore more related records in 'Voorraad_uit' (=outgoing stock).
      I want to make a subsummary report showing the total amount of incoming and outgoing units per product(name) by using the following layout structure:

      I tried two scenarios which each give me a part of the desired result.
      when I base the layout on 'Voorraad_in' (=incoming stock): I get the right totals for incoming deliveries I get all the incoming deliveries listed (also those without outgoing delivery) Body part 3 (see above) only shows one row also when there are more than one related outgoing transactions I get the wrong totals for outgoing deliveries (only based on one record) when I base the layout on 'Voorraad_uit' (=outgoing stock): I get the wrong totals for incoming deliveries I don't get all the incoming deliveries listed (only those with outgoing delivery) Body part 3 (see above) shows all the related outgoing transactions I get the right totals for outgoing deliveries Main goal is having the right totals for both incoming and outgoing deliveries..
      My layout is sorted ascending by (in mentioned order) productname, incoming delivery number and outgoing delivery number.
      The totals are calculated by using summary fields.
      I hope I'm on the right track and that the desired result is possible.. your help is much appreciated!
      Thanks in advance for your help.
      Regards,
      Solvax
    • By Steve Pfister
      Security Challenge when signing on to Paypal through Filemaker pro 18 web viewer.    I see the text "Security Challenge" but nothing else shows up... all is invisible, making it impossible to solve the security challenge and sign in....  Mac Pro..OS High Sierra 10.13  ....running Filemaker 18 .     I am having Java script issues I am assuming.   Has anyone else had this similar issue and solved it?
      Thank you in advance
      Steve
  • Who Viewed the Topic

×
×
  • Create New...

Important Information

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