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

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

Recommended Posts

Posted

I currently have a script;

Copy [AutoGroup]

Go to Layout [DataEntry]

Enter Find Mode

Paste [AutoGroup]

Perform Find

[Replace Found Set]

Enter Browse Mode

My problem is this. If the name is "Smith Dealerships". I get "Smith Dealerships", Chad Smith Dealerships, Smith Brothers Dealerships etc.. How can I rewrite the script to only pull, in this case "Smith Dealerships"? The find selection is made from a pick list, so the name entered is always correct.

Thanks for your help,

B. Zilla

Posted

Hi Zilla,

Try this:

Go to Layout [ original layout ]

Copy [ AutoGroup]

[ Select entire contents ]

Enter Find Mode

Insert Calculated Result [ AutoGroup , "=" ]

[ Select entire contents ]

Paste [ AutoGroup]

[ No style ]

Perform Find

[ Replace Found Set ]

HTH

Lee

laugh.gif

Posted

Hi Lee,

Maybe you could help me one more time.

With the above script it works fine except when the following happens.

If the find is "South Shore NJ" the script also picks up "South Shore ML NJ". Is there a way that it will find "South Shore NJ" only!

Thanks Lee,

Posted

You need to "Replace" the find when the widow comes up. Open the script again and then click OKay. A window will then come up and ask if you want to Replace of Keep the Find. choose the replace and that should do it.

Lee

Posted

You have something else in your script that is overwriting your current find. Check the go Enter Find Mode and Uncheck the buttons there.

Lee

Posted

What version of Filemaker are you running? The exact find feature is available starting with version 4. However, it is not available in version 4 if the file is hosted on Server 3.

Posted

Open it up again.

physically select each step and make sure that all checkboxes are uncheck EXCEPT the "Select the Entire Content" box in the insert calculated result step and then Check the "Replace" find in the confirmation box that comes up when you click OK and then Click OK.

I can send you a sample of this if you need it.

Lee

Posted

Hi Bigzilla,

This will work for you every time and will not get you into trouble later.

Create "gAutoGroup" and make it a Global Text field and the script will look something like this;

Go to Layout [Data Entry]

SetField [gAutoGroup, AutoGroup]

Enter Find Mode

SetField [AutoGroup, "==" & gAutoGroup]

Perform Find

[Replace Found Set]

Can life get any better!

hj

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