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

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

Recommended Posts

Posted

I'm trying to create a script that does something fairly simple. At least I think it is simple.

I want to find all records with the field "Buddy" set to "Yes"

And omit all records that have the field "Status" set to "Inactive"

Any help would be appreciated.

-Kirk

Posted

Enter Find Mode ()

Set Field (Buddy, "Yes")

New Record/Request

Toggle Status Area (show) <-- not required in newer versions of FM

Set Field (Status, "Inactive")

Omit

Perform Find ()

-bd

Posted

Nothing. Script steps cannot be typed in, only selected from the menu in ScriptMaker. The empty parenthesis indicates that you should uncheck the "restore" option in both the Enter Find Mode and Perform Find steps. If you don't they will override the find you wish to perform with a saved find. Might want to read the manual a litte and play around with ScriptMaker. Doing so will make all of this more obvious.

-bd

Posted

I have both unchecked, yet it still wants something in those paranthesis. Any thoughts? It's working with the Constrain in there.

Thanks for all your help, by the way.

Posted

What exactly do you mean by "wants something in those paranthesis"?

If you are referring to the Perform Find [] script step, you must choose "Replace", "Constrain" or "Extend". If you choose "Constrain" (or any other option) your only other possible choice is to check the "Restore find requests" checkbox or not. No other parameter can be entered.

Replace: replaces the current found set with the results of the find

Constrain: performs the find on the current found set, further constraining the results

Extend: performs the find on the records not in the current found set and adds the results of the find to the found set

-bd

Posted

Okay, this is what I'm trying to say.

Your original script had it like this:

Perform Find ()

What I was saying was that I couldn't figure out how to have nothing inbetween those paranthesis.

Posted

Yes it is.

Left("Buddy", 3) will give you the result "Bud".

Left(YourField, 3) will give you the first three characters of whatever is in the YourField field.

Cheers

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