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.

Lookup Problem

Featured Replies

I am having trouble with the following:

Lookup based on Sell price with a relationship between 2 tables on Model, A & B fields.

Here is an example of some data

Model A B Sell Price

SRAC 6 12 $4.42

SRAC 8 8 $4.21

SRAC 8 12 $4.76

When I enter:

Model A B Sell Price

SRAC 7 12

I get Sell Price = $4.21 which is how the 'Copy Next Higher value' is working. I would prefer to get the result of $4.76 so in theory the system would first match on Model, then on A, then on B. If B wasn't matched it would then take the next higher value of B.

Can this be done?

I'm not sure this is as simple as that. Suppose the pricelist goes like this:

SRAC 1 1 $11

SRAC 1 9 $19

SRAC 3 1 $31

SRAC 3 9 $39

and the Entry is "SRAC 2 5".

A simple multi-criteria relationship, with lookup next higher, will return the price of $19.

IIUC, the correct price in this case is $39.

I think a better approach would be to define the relationships thus:

LineItem::Model = PriceList::Model

AND

LineItem::A <= PriceList::A

AND

LineItem:: <= PriceList::B

and sort the PriceList records by A and B, descending. Now the first related record in PriceList has the correct price.

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.