Jump to content

"OR" function in Find Request script


mdfOffman
Go to solution Solved by mdfOffman,

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

Recommended Posts

In order to perform an OR find, you need to create a separate find request for each predicate. These requests can be specified and stored in the Perform Find script step. For example, to find records where the name is Adam or Betty, it would be set up as:

image.png.5e15f6ed0473e0711b92825be74f04fa.png

If you prefer, you can do the same thing by:

Enter Find Mode [ ]
Set Field [ Table::Name; "Adam" ] 
New Record/Request
Set Field [ Table::Name; "Betty" ] 
Perform Find [ ]

The advantage here is that you can see at a glance what the search does, without drilling into the stored requests.

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Thank you so much for the time to help me.  After much internal debate and testing, I decided to surrender and create a "Mirror DocLinks" script.  This, of course doubles the size f the join table but I found it the simplest and most reliable way.  It works just fine though you have to be careful with the delete script which needs to delete both records but not any other records to which field 2 is connected.

Thanks again

Link to comment
Share on other sites

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