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

Finding - Set 'Omit' in a script


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

Recommended Posts

Posted

I have tried various script combinations where I have included the 'Omit Record' code without success. Can I have a little more guidance?

In addition, If I get the 'Omit' flag to come on, how do I get the 'Include' Flag to turn on later?

Posted

There are 2 things to consider. 1, The Omit should be a new request at the end of the finds. 2, The status can be hidden but not locked.

Posted

Close, but no cigar.

I have set up 3 buttons:

Button1 Line1 - Enter Find Mode []

Button2 Line1 - Perform Find []

Button3 Line1 - Enter Find Mode []

Button3 Line2 - Omit Record

Lets say that I have 1,000 records total and that I first want to find 200 of them. And from that 200, I want to omit 10 resulting in a found set of 190.

If I click on Button1, enter find cirteria and then click on Button2: I get the correct number of records (200) in a found set.

If I then click on Button3 (which has the Omit Record code), enter find criteria and then click on Button2: The records are omitted from the total number of records not from the found set. That is, I get a found set of 990 instead of 190. Any ideas?

Thanks for all of your help.

Posted

I'm afraid your little test has nothing to do with your original question. You will end up with the same result if, instead of pressing Button 3, you enter Find mode and click the 'Omit" button manually.

You need to review how find requests work, and how Find works in general. Whenever you do Perform Find, you are searching the entire table - whether to omit or to include. The correct order of actions here would be:

Enter Find Mode

# enter criteria for 'include'

New Request

Omit Record

# enter criteria for 'omit'

Perform Find

Or:

Enter Find Mode

# enter criteria for 'include'

Perform Find

Enter Find Mode

Omit Record

# enter criteria for 'omit'

Constrain Found Set

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