Guse Posted July 26, 2006 Posted July 26, 2006 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...
Ender Posted July 26, 2006 Posted July 26, 2006 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 []
comment Posted July 26, 2006 Posted July 26, 2006 Perhaps I am not reading this correctly, but I see: Enter Find Mode [ ] Set Field [ FieldA ; ValueA ] Set Field [ FieldB ; "=" ] Perform Find [ ]
Guse Posted July 27, 2006 Author Posted July 27, 2006 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!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now