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

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

Recommended Posts

Posted

Hello,

I'm constructing a database for a chemistry lab that I work in. It is an inventory database and I'm writing a script that will perform a search function.

In the database there are three fields i would like to search: "Common Name", "Formal Name", and "Alternate Names". Chemists are not too bright so we have 8 names for everything. All three fields are in the table "Supplies".

What I would like is the ability to search all three fields at one. This is my current script that performs a search of the field "Common Name":

Enter Find Mode[]

Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies::) Common Name]

Go to Field [supplies::Common Name]

Perform Find[]

Sort Records[Restore; No dialog]

Halt Script

This works fine for searching the common name field. If anyone knows how to expand the find so that I can search all three fields and show the records I would be most grateful.

Thanks

js22

Posted

How about:

Enter Find Mode[]

Show Custom Dialog["Find An Inventory Item"; "Enter Item Name"; Supplies::) Common Name]

If [ not isempty(Supplies:: Common Name) ]

Set Variable [ $Name ; Supplies:: Common Name ]

New Record/Request

Set Field [ Supplies::Formal Name ; $Name ]

New Record/Request

Set Field [ Supplies::Alternate Names ; $Name ]

End If

Perform Find[]

...

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