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.

Choose color from container field in prefs file

Featured Replies

Hello All,

I'm using FM6 on Mac OS10.3.

I have defined a calculation field, type Container, Do not evaluate is not checked, to grab the proper color for each record depending upon the status of the record. I'm pulling the color from a repeating Container field in my one record preferences file. The container field is defined with 10 repetitions, but I am currently only using 7 of them. All is well until I need repetition 6. I have a dark grey color at present (but have tried many other colors). The records which should show dark grey do not show any color at all, no matter what I change the color to. All other status entries grab the proper color. I have check the status field to ensure it contains the proper status notation.

At one point when I was trying to get the dark grey color to show, I double-clicked in the 5th repetition of the container field and an audio recording dialog opened. I canceled it. Could this have some bearing on my problem?

I have also re-defined the 10 repetition container field to 5 repetitions, and then changed it back to 10 repetitions. No change, repetition 5 still does not show.

I'm at my wits end. Anyone know what I have done?

Thanks,

Lisa

What is your calculation?

  • Author

Here's my script:

If [ IsEmpty(Checks|number|defendant::mark resolved) and

IsEmpty(Checks|number|defendant::mark deleted) and

IsEmpty(Checks|number|defendant::mark returned) and

IsEmpty(Checks|number|defendant::mark back out) ]

Set Field [ Checks|number|defendant::action paid, 4 ]

Set Field [ Checks|number|defendant::date paid, Status(CurrentDate) ]

Set Field [ Checks|number|defendant::remaining sub, "0.00" ]

Set Field [ Checks|number|defendant::remaining misc, "0.00" ]

Set Field [ Checks|number|defendant::remaining tax, "0.00" ]

Set Field [ Checks|number|defendant::mark deleted, "Yes" ]

Else

If [ not IsEmpty(Checks|number|defendant::mark deleted) ]

Set Field [ Checks|number|defendant::action paid, 0 ]

Set Field [ Checks|number|defendant::remaining sub, Checks|number| defendant::amount of check ]

Set Field [ Checks|number|defendant::remaining misc, Checks|number|defendant::misc ]

Set Field [ Checks|number|defendant::remaining tax, Checks|number|defendant::victim fee ]

Set Field [ Checks|number|defendant::date paid, TextToDate("") ]

Set Field [ Checks|number|defendant::mark deleted, "" ]

End If

End If

Setting the code in the Action Paid field determines the color.

Thanks,

Lisa

What is the actual calculation? Does setting the action paid field to 4 select CalculationRepetitionNumber 4? How?

  • Author

Well, I just answered my own question.

The problem was that I was basing my colors off of the text field that is filled depending on the code in the code field. After re-writing the field definition that pulls the proper color to be based off the code number itself, I now have dark grey!

Thanks,

Lisa

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.