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.

Using the If function in one portal row reference another portal row gives me only the top portal row record

Featured Replies

I am using the "if" function in a calculation field. That field is located in a portal. It gets the response for the "if" calculation but only from the first/top record in the other related portal. How do I have the "if" function calculation search through the whole portal (all related records) to get a response? I will copy and paste the calculation that I am using down below if that helps.

If (Individual ID=Small Group Male 2::Individual ID Male and Small Group ID=Small Group Male 2::Small Group ID;Small Group Male 2::Role)

The IF calculation needs to be in the related table.

  • Author

I'm not sure what you are stating. The portals and tables are related. The "if" calculation is in a related table. I am trying to get the response from the other portal. I am able to get a response, but only from the top record, it does not search through the whole portal or all related records.

Edited by Guest

A portal is merely a window into the related records. So if you are in a parent layout with one portal showing the related records from one table occurrence, you can see all the related records.

However, if you are coming from one of the child TOs, then through the parent record, and then to the other related child records, it is basically going from the first record of the child TO, then to the related parent first record, and then the other child TO's first record.

So if you want to relate the records from the records of one portal to ther other portal's related records. Since most likely they are both joined to the parent record by the parent's foreign key, you should be able to join the two tables together with another TO keyed on the foreign key.

Edited by Guest
deleted extra text

  • Author

They are two child tables that are related through a direct relationship with each other. I think a part of your reply was cut off at the end.

Edited by Guest

You can use the List () function to give you a list of related IDs. That being said, perhaps you may be going about this the wrong way. Why dont you post your file.

  • Author

I tried using the list function like you said. It gives me the correct response, however I get a leading "0" with a return before the response and a "0" after the response. How do I exclude the extra characters?

List (Individual ID=Small Group Male 2::Individual ID Male and Small Group ID=Small Group Male 2::Small Group ID;Small Group Male 2::Role)

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.