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

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

Recommended Posts

  • Newbies
Posted

Hi,

FM 7. Is it possible to use the value of the "Optional Script parameter" (for a button that triggers a script) in the Find Request Criteria box of a Perform Find action in the script which is triggered by the button?

I have created two buttons which both trigger the same script. The first button needs to tell the script to look for all invoices in which field TYPE has value A, the second button tells to look for value B. Now it seems that in the Find Request only static values can be entered. No other field values can be used (like a global field value), nor the result of the "Get(ScriptParameter)" function. It will literally search on the entered text, so instead of looking for "A" it will look for "=Get(ScriptParameter)".

Thanks,

Kurt.

Version: v7.x

Platform: Mac OS X Panther

Posted

Try processing the string with the Evaluate() function.

  • 3 weeks later...
Posted

I'm struggling with a similar issue, which is that there seems to be no way to do a Perform Find in a script using the contents of some variable as the match field.

Processing the string as you suggest, isn't going to do any good. How does one actually use the result in the Find request?

Ken

FileMaker Version: Dev 7

Platform: Windows XP

Posted

Use the Set Field script step to set the find criteria.

Enter Find Mode []

Set Field [ <My Field>, Get(ScriptParameter) ]

Perform Find []

FileMaker Version: Dev 6

Platform: Mac OS X Panther

This topic is 7540 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.