Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4176 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

 

Posted

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

This topic is 4176 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.