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.

Price based on JoinTable issue

Featured Replies

 

I've got 4 tables.  Product, Vendor, VendorProducts and Product Price.

A Product can have multiple Vendors. Each Vendor has their own price for a product.  My issue is I want to also Track the Price changes a vendor makes but also show the latest pricing when looking at a product. 

When setting up the Portal to list the VendorProducts on Products is not an issue but returning the latest Product Price based on a timestamp is the issue. I could create a script to place the latest price in the VendorProduct but that seems like the wrong approach.. The other thought is maybe create a Calc Field in VendorProducts to return the price is thats possible? Or maybe there is even a better way....   Thanks

2127809085_ScreenShot2019-11-15at2_02_21PM.png.d0de22b6cd52a5f1633b8b3640efed1e.png

 

 

If you define the relationship between VendorProducts and ProductPrice to sort the records on the ProductPrice side in reverse chronological order, then the Price field placed in a portal to VendorProducts will show the most recent price.

Alternatively, you could define a calculation field in VendorProducts as:

Last ( ProductPrice::Price )

This is assuming that either the relationship is not sorted and prices are entered in chronological order, or the relationship is sorted in chronological order.

  • Author

Sorting that Portal worked perfect.. 

Thanks

13 minutes ago, Devin said:

Sorting that Portal worked perfect.. 

I hope you mean the relationship, not the portal. Sorting the portal should have no effect.

  • Author

Yes.. I did mean relationship..Sorry about that.

 

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.