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

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

Recommended Posts

Posted

Alright, I've been turning to here more lately than I'd like, but I've just been having brain melt-downs... must be the newborn-lack-of-sleep thing.

Alright, it's a simple thing, really. I have a script that wants to find for a record that contains a ValueA in a FieldA and omit the records that contain ANYTHING in FieldB.

The best way I can think to describe it is:

If FieldA == VariableA AND IsEmpty(FieldB)

Display records

Seems simple. What everything seems to be doing is evaluating the first part (FieldA == VariableA), displaying results then somehow displaying every record again (including what was filtered out already) and evaluating the second part, leaving in results that don't meet the first part.

Not sure what to do here. Can't imagine why this is so hard for me...

Posted

The general syntax for building a Find is to put the criteria that you want found first, followed by the criteria that you want omitted (this order is important).

In your case, you might use a script to build the criteria, like this:

Enter Find Mode[]

Set Field [ FieldA ; $variableA ]

New Record/Request

Set Field [ FieldB ; "*" ]

Omit Record

Perform Find []

Posted

For the record (and future searches), I ended up going with Ender's suggestion (mentally flipped a coin) and it worked beautifully.

Thanks a lot both of you!

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