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.

Call external script with 3 IF contion steps

Featured Replies

I'm developing a relational db for a repair shop. My question centers around the "MAIN" db as the user interface and the "CONTACTS" db which collects the customer information.

The user starts in the MAIN db and selects a button to create a new record. The button calls an external script in the CONTACTS db that presents a layout in find mode. The user selects/types in the customer information and hits a button to perform the find. Three results can occur. Current record count = 0 then a new record is created in the CONTACTS db and the customer ID is passed to the MAIN db. Current record count = 1 the existing customer record ID is passed to the MAIN db. Current record count > 1 User has to select which customer ID to use.

I haven't figured out how to write a script to run through three IF statements and end up in the MAIN db while exiting/halting the script in the CONTACTS db. The method of putting the external script as the last line in the existing script doesn't work with three conditions. The main problem is exiting the existing script and ending up in the MAIN db when a condition is true. Any help would be apprecitated.

The script in the MAIN db shoould only call the script in the CONTACTS db. All condional sctipting should be done all in the CONTACTS db.

Allow User Abort [Off]

Set Error Capture [On]

If ["Status(CurrentRecordCount)=0"]

New Record/Request

Exit Script

Else

If ["Status(CurrentRecordCount)=1"]

Go to layout [where ever]

Exit Script

Else

If ["Status(CurrentRecordCount)>1"]

Go to layout [where ever]

Exit Script

End If

End If

End If

  • Author

Found the problem. I was not using a calc field to continue the filtering process. Thanks for your help.

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.