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.

logical script question

Featured Replies

First let me say that I am using FMDev 6.

I need a script step that checks the current found count and then either runs the script or shows a message.

I only want the script to run if there is one record in the found count. otherwise I show a message that tells the user to refine their search.

I am using an If/else statement in my script, that's easy enough and I tried to use "setfield" to grab the number from a field called "currentfound" but after reading the help on "setfield" that isn't the one to use.

Any ideas? remember, I am using FMDev 6.

thanks

Todd

  • Author

Maybe it would help is I posted what I have so far:

if[]

(this is the step i need)(was trying to use setfield("currentfound", "currentfound = "1")

Duplicate Record/Request

Duplicate Record/Request

Duplicate Record/Request

Go to Layout [layout]

Else

Show Message[message]

Go to layout[layout]

Enter Find Mode[]

End if

------------------

The first condition after the "IF" statement is the one I can't figure out.

Am I way off base?

thanks

Todd

  • Author

well, i'm appreciative that no one let me know the exact kind of ignorant human being I am. :)

the "If[]" statement has brackets for a reason. duh!

I just put my condition actually in the "If" section, between the brackets.

I swear I've been using filemaker for years and was blanking on that. I'll blame it on my recent surgery, I'm blaming everything else on it.

Todd

ROFLMAO!! Hey, Todd, join the club! We all have moments of delayed intelligence and it usually isn't until I post a question that the solution hits me!! :laugh2:

  • Author

i've done tech work, so, it's karma i believe. I can't tell you the number of times folks will explain a problem only to have it fixed by plugging in something.

todd

You need to press the "any" key. ;-)

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.