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.

A Parent-Child Question

Featured Replies

Hi all,

I'm trying to figure out a way of doing this without having to resort to a script. Maybe it can't be done.

If a child has a parent, and that parent has another child, then that other child is a sibling of the first child. How do I get a portal to show siblings of a child in a layout based on a child's TO that shows siblings, but not the child of the current record?

I've tried a couple of different relationship structures and tried using multi-valued keys, but nothing has worked. I can't get the child of the record to not show up as a sibling to himself/herself in the portal without using a script to set a key in the parent table.

Thanks in advance!

-Kent

This is not very clear*, but I think you want a self-join relationship of the Child table where:

Child::ParentID = Child 2::ParentID

AND

Child::ChildID ≠ Child 2::ChildID

---

(*) If you are on a layout of the Child table, how is a key in the Parent table relevant?

  • Author

Hi Michael,

One important part I left out is that a child can have 2 parents.

Please explain your parent-child structure. How does a child have two parents - are there two ParentID fields in the Child table? And what is a "sibling" in this context? Is a half-brother a sibling?

  • Author

Oops. Your question made me realize the error of my ways. I was insisting on using the Parent table to try to join siblings, instead of using a self join.

Attached is the file that solves it with a self-join using the same basic structure that's in a solution I'm developing.

Here's another question for you. I'd originally intended on joining children to parents via a join table so that a child could have any number of parents. How could I accomplish showing siblings in the way I want to if a join table is between parents and children?

Thanks!

-Kent

BTW To answer your question, a sibling for this purpose only needs to share one common parent

ParentChild.fp7.zip

Edited by Guest
Clarification

How could I accomplish showing siblings in the way I want to if a join table is between parents and children?

You would do the self-join on the join table instead (parent = parent and child ≠ child). Then attach another TO of Child to the second TO of the join table.

  • Author

:doah: I knew I was making this way harder than was necessary.

Thanks for your help, Michael!

-Kent

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.