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

Hi, Ive already searched through the change text colour threads but nothing seems to work in this situation :

My suppliers table includes the currency (AUD, USD, etc.) they normally quote in. Sometimes a supplier will quote in a different currency so I can change the this for each transaction as required. I need the transactions table currency field text colour to change to red if it doesn't match the supplier's regular currency.

This field is a lookup of from the supplier's currency so I can't use the option of a calculated value option in the field properties.

Does anyone have any ideas on how to solve this?

Thanks Pedro :-)

Edited by Guest

I Made a quick sample of one way to do this.

Basically, you want to compare the Currency of record to that of the bid, and then I used the Auto Enter on the Bid field to flag.

HTH

Lee

FlagCurrencyIfDiff.fp7.zip

  • Author

Hi Lee, thanks for replying so quickly.

I have tried a similar setup but the transaction's currency field is a lookup and when I enter a calculated result it cancels the lookup (only one can be selected).

When I try changing the text colour using another field it changes the text color in that field not the currency field :P

Thanks Pedro :-)

Can you better explain your tables/relationships structure? I understand you have a Transactions table and a Suppliers table, but you also mentioned a quote. How is the Transactions table linked to the Suppliers table?

  • Author

Hi everyone, I've posted a very simplified version of my database for a sample but everything that is required for this problem is there. More info on the problem is listed in the database notes.

Sample.zip

A password is required?

  • Author

Just Guest, no password, I was trying to figure out how to get rid of that entirely but haven't yet.

Cheers Pedro :P-)

Try making the field CurrencyType auto-enter the following calculation, replacing existing value:

Let (

trigger = Supplier_ID

;

Case (

IsEmpty ( CurrencyType ) ; Suppliers::CurrencyType ;

CurrencyType ≠ Suppliers::CurrencyType ; TextColor ( CurrencyType ; RGB ( 200 ; 0 ; 0 ) ) ;

TextColor ( CurrencyType ; 0 )

)

)

  • Author

Thanks Comment, your solution works really great :P-)

I'm at work tomorrow but on the wekend I'll be brushing up on some FMP functions I haven't used before.

Cheers Pedro :-)

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.