Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

List function or something else?

Featured Replies

What is the best/most efficient way to achieve this:

I have a table called "Animals". There are 3 pertinent ID fields:

Animal_ID (unique table ID)

Sire_ID

Dam_ID

The dam and sire IDs are unique Animal_IDs related to the "child" Animal_ID. A "Child" Animal_ID may be a dam or sire in other "child" record, but not all "child" IDs will be parents.

I need to create a portal that only includes Ancestry or "parent" (dam and sire) animals. It would be a subset of the full animal list.

I've tried several ways to achieve this, but can't seem to get either a calc field or list function to work.

Thanks.

  • 2 weeks later...

When you say you want to see these parent (limited to two) or ancestor (potentially very many) records in a portal, that implies that you have a record on which you are displaying the portal.

What record are you browsing when the portal is displayed? Is it the animal whose parents or ancestors you want to see?

If that is the case, the relationship for the parent records is straightforward.

You can create a calculated field on the animal's record that is composed of the sire_id and dam_id on separate lines. Use this as the key to relate to the animal_id on the Parent instance of the animal table.

Listing the ancestors is more complicated.

One method is to create a series of relationships connecting and table occurrences for each animal in the genealogy as far back as you want to go. With these relationships in place (connecting the sire's sire and sire's dam onto the sire table occurrence, and so on), you now can create a calculation on the animal's record that has one ancestor id per line where you are picking ids from these various ancestor table occurrences. Use this calculation as a key to the animal_id in a new table for all ancestors.

If you want to generate a key to list all ancestors no matter how far back, you may want to create a text field for the list of ancestor ids and populate it with a script that methodically wanders back along the genealogy visiting every ancestor and keeps track of all of the ids it has visited.

Edited by Guest

  • 2 weeks later...

If you want to show a list of only records that are parents, you need a way to identify those. Looking a records, you will ask, "Is this record a parent", or, "Is this record ID used in either the Sire or Dam IDs in another record?"

So, create two relationships: one for the Sire and one for the Dam. Then, if there is a related record in either relationship, return a 1. Then you can search for all the "1"s, or you can display those records in a portal via a relationship that matches to the value "1".

Make sense? Please reply if you would like more details. Good luck!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.