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.

Comparing Value in a portal

Featured Replies

Hello,

I have a price history database related to a product database, that I've a portal showing the price history on the product master, and that portal is sorted by date, so most update price should always on top. The problem I facing is I want filemaker to compare the latest price and the second latest price (the 1st and the 2nd row of portal), I know how to get the latest price by calculation, but it seems no way to retrieve the price on second row. I know it could be done by script, but I hope it could be automatically based on calculation field. Please help!

Thanks in advance!

damon

I will assume that the history for every selected product is not infinite (iow has not thousands of entries).

So since you allready have established the relationship (based on product id, I suppose) the next step is to create an value list "priceHistory" based on this relationship as use only related values from field "dateToNum" (very important, the field is calculated with dateToNum=date, result number) show also PriceID (as second field), select sort on first field.

The field PriceID should be an calculated kompound key like

ID & " "

Oops should be

ID & " " & productID

and not

ID & " "

  • Author

Dear Djukic.

Thanks and I will try!

Dmaon

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.