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.

Perform Find with $vars

Featured Replies

I must be missing something very basic and peculiar to FMP but if I write a script that sets Set Variable $Client=ClientID

and then set up a Perform Find in which it says

ClientID=$Client

I would expect results from this. Instead, I get "No records match this set of find requests" and I can see the $Client [with the $ sign] in the ClientID field. Can filemaker not deal with $vars in a search?? That seems too absurd to be true.

If this doesn't work...


Set Variable [ $Client; Value:Untitled::ClientID ] 

Enter Find Mode [  ] 

Set Field [ Untitled::ClientID; $Client ] 

Perform Find [  ] 

...is it somewhat of an surprice indeed!

--sd

  • Author

OH! THAT's the syntax?! I thought 'set field' was for just entering values in browse mode. i didn't realize i had to do that and THEN perform the find. Thanks!

So in the "perform find: specify" dialog, can i only put fields and "text" in there...no $vars?

You unload the $variable for what it carries!

--sd

  • Author

Sorry. I don't follow. So I can't put $ into those [restore] find requests? i always have to do the Find mode/set field/perform find sequence?

Not exactly true Barbara!


Set Variable [ $myVar; Value:Untitled::aField ] 

Perform AppleScript [ Calculated AppleScript: "show every record whose cell 1 = "" & $myVar  & """ ] 

--sd

Got me, Soren. I don't use a Mac, so I don't think about AppleScript.

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.