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 All,

I have db which the view field is colour coded depending on the age of a job.

It works fine until the age of the job (days in production field) goes beyond 9 days old and less then 20 days old.

The filed is a calculation the result being a container.

the calc looks to a container field with 4 repetitions all containing different colour blocks and depending on the result displays the colour of the repetition.

here is the calc B)

Case(

Job Done = "1", GetRepetition(Container, 3),

Days in Production >= "3", GetRepetition(Container, 1),

Days in Production = "2", GetRepetition(Container, 4),

Days in Production < "2", GetRepetition(Container, 2),

"")

how can i fix it so that when it is over 10 days and still in 'Production' it gets rep 1 and so on. At the minute if the job is 10 days old it defaults to rep 2.

I have messed about setting the number of days in Production field with decimals etc etc but no joy.

the db is created in FM Pro 6

Thanks in advance,

ricardo.

Just a thought... is your "days old" field a text field or a number field? alphabetically, 10 is less than 2. You need a number field.

  • Author

i've worked it out using the Int(number) function within the case function.

Thanks for you help.

ricardo.

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.