Skip 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.

double loops for matching

Featured Replies

I have been working on my babies' records database and am now matching siblings based on the HouseholdID I set before.

Here is the script I wrote for the siblings' matching case, but it is not working - it stopped after the first baby record. Could anybody take a look at it and enlighten me?

ps I have two tables Household and Babies, and each baby is assigned a babyID and a householdID. Siblings should have the same householdID. I suspect that the double loops don't work because of the layout and actions I set for each loop, but no idea what is wrong.

Thanks a lot!

matchingSiblings.jpg

Hm... what exactly is your script supposed to accomplish? It says "findSiblingIDs", but I am not sure what that means.

  • Author

Hi comment! :)

Yeah.. so after I assigned householdID for each baby, I wanted to pull siblings info in the Household layout. Right now in my Household layout, I have parents profile information, and I just added a repeating field siblingIDs to contain all the siblings' IDs. This script is to find baby/babies for each household by matching baby's HouseholdID with each household ID ($HHid) in my household table.

Hope it make sense! Thank you!

This is absolutely not necessary. Make sure you have a relationship between the two tables matching on HouseholdID. Then place a portal to Babies on a layout of Households (with the fields you want to show) and you're done.

  • Author

You are absolutely right!! I'm so glad that I asked this question. I felt it shouldn't have taken this much effort to do it but couldn't remember the power of portals... forgive my "newbieness" I'm learning... Thank you so much, Comment!!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.