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.

Using portal results in calculations

Featured Replies

I have a portal that contains three fields:

Vendor

Material

Price

The portal sorts by price.

For any given material, the least expensive vendor shows up on top.

Is it possible to create a (4th) calculation field that queries this portal result and selects the top (least expensive) vendor for purchasing purposes?

I like the portal to display my options but I would like the calculation to automatically select the least expensive of those options.

Any ideas how to do this?

Make a calculation in the parent table:

Min(related::price)

  • Author

Thanks Tom.

That's what I was looking for.

Jarvis

Actually, I don't know why you can't sort the relationship instead (and remove the sort on the portal). The portal will still sort ascending on price if the relationship is sorted that way. Then, the 'lowest price' VendorID, the lowest price and anything else from that Vendor is automatically the first record. You can then just place the related field directly on your layout as the 'winner'.

Calculation may not be necessary (depending upon what you need it for). But even if you want it, you can then use a lookup or even straight calculation of: Vendors::Price or Vendors::VendorName and drop the aggregate calc. I think that should fit the bill if that relationship can be sorted and might be more efficient.

  • Author

Hi LaRetta,

Thank you for the response.

I am not sure what you mean by "sort the relationship" but I will stare at it for a bit and come back with more questions.

Jarvis

Create an account or sign in to comment

Important Information

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

Account

Navigation

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.