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.
Juggernaut

Way to run a select a script (or scripts) according to calculation?

Featured Replies

Hello

 

I am wondering if there is any way in Filemaker 11 to run a script according to a calculationi (more specifically, according to a selection that the user makes).

 

Here is an outline of what I wish to achieve.

 

I have a global field, with a checkbox value list of the many reporting options available to the user.

Depending on what he or she checks then the appropriate script should be run.

 

For example --

 

If user has checked the "Cheque Requisition Report" then the "Cheque Requisition Report Script" should be run.

If user has checked the "Cheque Requisition Report" and "Current Inventory Report" then each of the two scripts will be run.

 

And so on.

 

Is this possible?

 

Set Variable [$ctr; ValueCount(yourCheckboxField)]

Loop

If[GetValue(yourCheckboxField; $ctr) = "Cheque Requisition Report"]

Perform Script["Cheque Requisition Report Script"]

Else if [[GetValue(yourCheckboxField; $ctr) = "Current Inventory Report"]

Perform Script["Current Inventory Report Script"]

#  etc

End If

Set Variable [$ctr; $ctr - 1]

Exit Loop If[$ctr = 0]

End Loop

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.