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

1:: SCRIPTED TOOLTIP FORMULA TO GET INFO FROM ANOTHER TABLE 

 

If (B1::AR ALERT = 1 and B1::MR ALERT  ≠ 1  ; B1::AR ALERTS ; "" )
 & ¶ & 
If (B1::MR ALERT = 1 and B1::AR ALERT  ≠ 1 ; B1::MR ALERTS ; "" )
 & ¶ & 
If (B1::AR ALERT = 1 and B1::MR ALERT = 1   ; 
B1::AR ALERTS & ¶ & B1::MR ALERTS ; "" )

 

WHEN THIRD CONDITION IS OK ABOVE IM GETTING EXTRA SPACE ABOVE HOW TO GET RID ???

 

2:: IS IT POSSIBLE TO CONDITIONALLY FORMAT A FIELD WITH INNERSHADOW AND OUTERSHADOW ???

 

 

WhatsApp Image 2024-06-21 at 7.01.25 AM.jpeg

 

 

 Case(
B1::AR ALERT = 1 and B1::MR ALERT  ≠ 1  ; B1::AR ALERTS ; 

B1::MR ALERT = 1 and B1::AR ALERT  ≠ 1 ; B1::MR ALERTS ; 

B1::AR ALERT = 1 and B1::MR ALERT = 1   ; 
 B1::AR ALERTS & ¶ & B1::MR ALERTS ; )

 

THIS IS WORKING :) BUT WHAT ABOUT "IF" SCRIPT PLZ HELP??

Edited by Gopala Krishnam Raju Ambati
TYPO ERRORS

I suspect your formula could be simplified to:

List ( 
If ( B1::AR ALERT = 1 ; B1::AR ALERTS ) ;
If ( B1::MR ALERT = 1 ; B1::MR ALERTS ) 
)

 

1 hour ago, Gopala Krishnam Raju Ambati said:

2:: IS IT POSSIBLE TO CONDITIONALLY FORMAT A FIELD WITH INNERSHADOW AND OUTERSHADOW ???

No. Conditional formatting can only change the text style, fill color and icon color.

See also:
https://fmforums.com/topic/110317-change-field-color-as-well-as-the-color-of-the-rectangle-shape-tool-upon-click/?do=findComment&comment=492669

 

 

--
P.S. Please fix you keyboard so that you don't appear to be SHOUTING.

 

Edited by comment

  • Author
List ( 
If ( B1::AR ALERT = 1 ; B1::AR ALERTS ) ;
If ( B1::MR ALERT = 1 ; B1::MR ALERTS ) 
) 

will try this tx :)

 

Edited by Gopala Krishnam Raju Ambati

  • Author
On 6/21/2024 at 8:36 AM, comment said:
List ( 
If ( B1::AR ALERT = 1 ; B1::AR ALERTS ) ;
If ( B1::MR ALERT = 1 ; B1::MR ALERTS ) 
)

THANKS alot saves hell lot of time and scripting :) tons of headache relief :)

31 minutes ago, Gopala Krishnam Raju Ambati said:

saves hell lot of time and scripting

ChatBotPro says: 

Quote

In FileMaker, functions and scripts serve different purposes:

 

1. Functions: Functions in FileMaker are predefined operations that perform a specific task and return a value. They are typically used within calculations, text manipulation, date and time operations, and other data-related tasks. Functions are designed to be used within calculations or formulas to manipulate data or perform specific operations on fields or variables.

 

2. Scripts: Scripts in FileMaker are sets of predefined actions or commands that can be executed in a specific sequence. Scripts allow you to automate tasks, perform complex operations, navigate between layouts, show custom dialogs, interact with external data sources, and more. Scripts are used to control the flow of a FileMaker solution and can be triggered by user actions, layout events, or script triggers.

 

In summary, functions are used for data manipulation and calculations within fields, while scripts are used for automating tasks and controlling the behavior of a FileMaker solution. Understanding when to use functions and when to use scripts depends on the specific task or operation you want to perform within your FileMaker database.

--sd

Edited by Søren Dyhr

  • Author
9 minutes ago, Søren Dyhr said:

ChatBotPro says: 

--sd

difference between case and list function pleasseeeeeee ???

  • Author

i think both gives same result correct me if im wrong 

 

 pilcrow in between any example code plzzzz ? i didnt chk though 

Edited by Gopala Krishnam Raju Ambati

36 minutes ago, Gopala Krishnam Raju Ambati said:

i think both gives same result correct me if im wrong 

You're wrong, two distinctive different functions!

If both IF's are true, will two "lines" of result occur simultaneously, in Michaels function above!

It could almost be written like:

1 hour ago, Gopala Krishnam Raju Ambati said:
If ( B1::AR ALERT = 1 ; B1::AR ALERTS ) & "¶" &
If ( B1::MR ALERT = 1 ; B1::MR ALERTS )

 

But on top of that it deals with the case, if the first or second half is undefined, by leaving out the pilcrow if need be!

--sd

 

Edited by Søren Dyhr

1 hour ago, Gopala Krishnam Raju Ambati said:

difference between case and list function pleasseeeeeee ???

The question makes very little sense, because the two functions have very little, if anything, in common. The Case() function evaluates one or more test expressions and returns the result for the first test expression that evaluated as true. The List() function simply constructs a return-separated list of all its arguments.

The important point here is that the List() function ignores empty values. So the difference between your:

If ( a ; b ) 
& ¶ & 
If ( c ; d )

and mine:

List ( 
If ( a ; b ) ; 
If ( c ; d )
)

is that when a is false and c is true, you will end up with an empty line above d, while my result will be just d. Or, in more general terms, your result will always contain a carriage return, while mine will have it only when both tests are true.


And, as Søren already pointed out, the Case() function would only ever output either b or d, never both.

 

Edited by comment

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.