Jump to content

Find this...


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

Recommended Posts

Well, that is the idea. I created the script step, and the search field as well as the "cAllDescriptions" and modified the fields to search, however, it does work in the solution provided, but not in mine. It is duplicated except for the search criteria. I search for a name, and it doesn't find it. In fact, it finds nothing...Back to the drawing board...

Link to comment
Share on other sites

Unbelievably I found the issue. In the field used for the criteria where you list all fields to be searched, I was using "field name & field name2 & so on..." I added "& ¶ &" (notice the middle thingy) and that fixed it. Each field listed needed to be separated completely. And now it works great.. Thanks for showing me the post. Again I learn..

Link to comment
Share on other sites

See the modified file I posted today on an earlier thread. It has steps in there that will do exactly what you are looking for.

http://fmforums.com/forum/showpost.php?post/291721/

Link to comment
Share on other sites

Now if I can figure out a way to have a message box popup if nothing is found, then return to showing all records when clicking "OK" rather than the standard FM modify box it will be perfected...B)

Set Error Capture [On]

Enter Find Mode []

Set Field [ Aquisitions::cAllDescriptions; Aquisitions::gSearchString]

Perform Find []

If [ NOT Get ( FoundCount ) ]

Show Custom Dialog [ "No Records"; "No Records Found" ]

Show All Records

End If

BTW, your gSearchString field in your file needs to be changed to a global field and in your script the set field does not have to be from Aquisitions2::cAllDescriptions.

Link to comment
Share on other sites

Set Error Capture [On]

Enter Find Mode []

Set Field [ [color:red]Aquisitions::cAllDescriptions; Aquisitions::gSearchString]

Perform Find [color:red][]

If [ NOT Get ( FoundCount ) ]

Show Custom Dialog [ "No Records"; "No Records Found" ]

Show All Records

End If

Link to comment
Share on other sites

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