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

Searching with script


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

Recommended Posts

  • Newbies

hi!

I would like to perform a search with a script that looks in all fields and shows only the record corresponding to the searh condition.

e.g: I have search field and if I write a number in it the script searches all the fields and retrievs only the record that is holding this number.

so, how do I do it? confused.gif

Link to comment
Share on other sites

Do you mean you want to search in every field of every record for one number?

Or do you just want to search every record to find those in which that number is in one particular field?

If the latter, a simple search is all you need.

If the former, create a global field in which the "search number" goes. Then write a script:

Enter Find Mode -- uncheck "Restore" and "Pause"

Set Field (Field1, GlobalField) -- this places the contents of the global field into one field

New Record/Request/Page

Set Field (Field2, GlobalField)

etc., until all fields have been filled in, each in its own request.

Perform Find -- make sure "Restore" is unchecked.

That'll do it.

Link to comment
Share on other sites

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