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

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

Recommended Posts

Posted

Hi,

I need a script to find a category of equipment available during a date range. So I need to find the category then omit those category items with schedules that fall within the specified date range. The category and date range will change every time the script is used.

One way to do it would be to use the "Perform Find" script step but it doesn't seem to allow for variable find criteria (is that right or am I missing something?).

Another approach would be to use "Enter Find Mode" and use "Set Field" to enter the search criteria with multiple "Requests" but with that method there's no way to set a "Request" to Omit (again, am I right about that or is there a way to set Omit?).

Or I could find the equipment category then use the "Constrain Found Set" script step but that uses the same "Edit Find Request" dialog that does NOT allow variable search criteria.

Anyone have any ideas? Thanks.

Posted

From the Help file:

Omit Record script step

"When the step is performed in Find mode, it causes the find request to become an Omit request, as if the Omit checkbox had been selected."

Enter Find Mode

New Record Request

Omit Record

Set Field[]

Perform Find

Not sure if it matters if you place the Omit Record step before or after the Set Field step. I'm guessing it doesn't matter.

Posted

Thanks very much, that solves my problem and eliminates yet another patch of ignorance from my sorry brain.

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