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.

Display informational message if there is no related record

Featured Replies

I have a simple two table database. What I would like to do is have a button that will take the user to the related record if there is one but if there is not a related record then I want to pop up the custom dialog box.

Can someone explain how is this done? It seems pretty simple but I can't get it to work.

Thank you!

Becky

If[ Not IsValid( rel::id ) ]

Custom Dialog

Else

GTRR ...

EndIf

-Jens

Use "not isempty()" instead of "not isvalid()". IsValid() is not intended for this purpose.

  • Author

That worked. I even looked at IsValid in the help file before posting but didn't realize that it did this from the description.

Thank you Jens!

What Ender said.

  • Author

IsEmpty works too, but I had to remove the "not" modifier to make it work properly.

I thank all of you for your help. I learned something today. Now if I can just remember it for next time.

Becky

LOL, you are right - it should have been "What Ender not said."

LOL! so not not IsEmpty() eh? :

Oh, you boolean logic freaks. IsEmpty(), not IsEmpty(), it's only 1 off. :

Seriously, not not TRUE = TRUE. "not not" was a good way to do what GetAsBoolean() does now.

it's only 1 off.

More in the metric system!

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.