Jump to content
Server Maintenance This Week. ×

Multiple find requests in a single script


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

Recommended Posts

How can I create multiple find requests in one script? I want to be able to search the same field for the lack of multiple values. I have figured out how to do it from the browse view using the find mode but I need to be able to put about 19 different find requests into one script. Also, in a script how do I search for the lack of a value? When I use the form I just click omit and enter the value into the field. However what do I type in a script to cause it to perform a find on my records and search for the lack of certain values?

Thanks,

Eric Nelson

Link to comment
Share on other sites

Script it the same way you'd do it yourself:

code:


Allow User Abort [off]

Enter Find Mode [] <-- no options

--enter request1 data--

New Record/Request

--enter request2 data--

New Record/Request

--enter request3 data--

.

.

.

Perform Find [] <-- no options


Don't select "Restore Find Requests" in the Enter Find Mode or Perform Find steps.

Link to comment
Share on other sites

If your search is always the same, then you can set it up by hand then save it in a script with a single Perform Find [Restore] step.

If you'd rather build the find in the script, use the Omit Record script step to check the Omit box in Find mode:

code:


...

Set Field ["searchField",""val1""]

Omit Record

New Record/Request

Set Field ["searchField",""val2""]

Omit Record

...


Link to comment
Share on other sites

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