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.

Featured Replies

I have 4 portals of the same data with differing rows for each portal in a purchase order form. One of the fields is a dollar amount for a line item.

What I need to do is get a subtotal for each portal. I just can't seem to figure it out. Anyone know how I can do this?

sum(relationship::value)

Jens

  • Author

Sorry - don't work. It either gives me just the amount for each portal row, or the total for all of the portal rows.

Maybe I need to be a little more explicit:

I have 4 portals of the same related file which has a field named "Amount" (Quantity*UnitPrice). Each portal defines specific rows to display:

Portal 1 shows rows 1-9

Portal 2 shows rows 10-34

Portal 3 shows rows 35-59

Portal 4 shows rows 60-84

I need to show (preferably just below and outside the portal) the subtotals for each portal or:

subtotal of "Amount" for portal rows 1-9

subtotal of "Amount" for portal rows 10-34

subtotal of "Amount" for portal rows 35-59

subtotal of "Amount" for portal rows 60-84

Even a custom calculation - I just can't wrap my brain around this one.

Edited by Guest

That is because portals are merely a window to your related data. They way you pick and choose how many rows and starting row number that you want to Display is another thing. Changing the settings on the portal itself does not change the background information.

In order to achieve what you are looking for, you would need additional table occurence with relationships for each set of records or possibly you could use a recursive custom function.

I assumed different relationships for each portal. So now it is much clearer.

It is not elegant, but my only idea of solving this is getting each value separately with GetNthRecord and adding one by one.

Jens

  • Author

Nevermind - I found another post with a custom function that works just fine. Thanx.

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.