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.

Indexing or Storing a Case Function

Featured Replies

I have a rather long case function... Lots of and's between statements.

I have notices that when I go to store (unclick do not store option under calc) it does not let me.

I have other case function which are shorter that I can store or index...

So my question is why can't I store and or Index a case function like this:

Case (

File_Status_Broker = "Yes"

and

File_Status_LT = "Yes"; "Yes";

File_Status_Broker = "No"

and

File_Status_LT = "No"; TextColor("No";RGB(255;0;0));

File_Status_Broker = "No"

and

File_Status_LT = "Yes"; TextColor("No";RGB(255;0;0));

File_Status_Broker = ""

and

File_Status_LT = ""; "Yes";

File_Status_Broker = ""

and

File_Status_LT = "No"; TextColor("No";RGB(255;0;0));

File_Status_Broker = ""

and

File_Status_LT = "Yes"; "Yes";

File_Status_Broker = "Yes"

and

File_Status_LT = ""; "Yes";

File_Status_Broker = "Yes"

and

File_Status_LT = "No"; TextColor("No";RGB(255;0;0));

File_Status_Broker = "No"

and

File_Status_LT = ""; TextColor("No";RGB(255;0;0)))

PS: IS there a shorter way to do this statement?

Joseph

This is shorter (but probably not shortest):

Case (

File_Status_Broker = File_Status_LT and File_Status_Broker = "Yes"; "Yes";

IsEmpty(File_Status_Broker) and File_Status_LT = "Yes" or IsEmpty(File_Status_LT) and File_Status_Broker = "Yes"; "Yes";

not IsEmpty(File_Status_Broker) or not IsEmpty(File_Status_LT); TextColor("No";RGB(255;0;0)) )

It doesn't have, nor need a "" at the end; it's implied; it's empty if neither have an entry.

One or the other of your fields is either a global, a related field, a calculation depending on one of those types, or an auto-enter depending on a calculation referencing one of those types. The last is hard to predict. In fact I may have not stated it exactly right.

Case(

PatternCount( File_Status_Broker ; "no" ) or

PatternCount( File_Status_LT ; "no" ) ;

TextColor("No" ; RGB ( 255 ; 0 ; 0 ) ) ;

TextColor("Yes" ; RGB ( 0 ; 0 ; 0 ) )

)

  • Author

Thanks for the answer... I am trying to make a portal on a page using that field... as you can see it is a simple case function that looks at several different fields... I just do not know why my portal does not work with a calc field... It works well with just a text field from the same table just not that field.... Is there a way around this?

Joseph

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

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.