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

  • Newbies

I have table_1 in FM & I need find some data in this table for criteria fieldA>fieldB

I write script:

:( I try related Table_1 for him self Table_2 from some ID field & corect script:


Enter Find Mode[]

Set Field[Table_1::fieldA; ">" & Table_1::fieldB]

Perform Find[]



In result this script work not good. They show data where fieldA>fieldB & fieldA<fieldB. Its not good 

Enter Find Mode[]

Set Field[Table_1::fieldA; ">" & Table_2::fieldB]

Perform Find[]

but its dont work too.

How can help me?

Filemaker does not perform calculations during a find. You need to add a calculation field, for example =

fieldA > fieldB

then search for 1 (True) in this field.

I see it as similar to Find Matching Records. :wink3:

Hi Shar,

You can always set the value of FieldB to a variable at the beginning of your script and then use the value within your find, something like this pseudo script:

Set Variable [ $fieldB ; ">" & Table::FieldB ]

Set Error Capture [ On ]

Perform Find [ Table::FieldA ; $fieldB ]

If [ not Get ( LastError ) ]

Show Custom Dialog [ "No records found." ]

... do whatever if no records found

Else

... do whatever with your found set

End If

added corrections in blue ... it's still early and before coffee. ;-)

  • Author
  • Newbies

Thank you for you answer. I found out myself. I use calculation fielt & do my find for this field.

Similarly like you write comment.

.

Thanks for all!

​sorry for my great english...

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.