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

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

Recommended Posts

Posted

I am trying to make a simple address book.

There is one layout that captures all kinds of data about this contact.

We have their email address, home phone, dog's name etc.

A second layout is in columnar format and has a field which concatenates first and last name + phone number.

I would like to add the alphabet script at the top of this layout.

When I hit the letter "C" it should find all the permutations that start with the letter "C".

I would like to be able to do this without having to re-enter criteria into a find field.

Is there a way to script repeatable finds?

Thanks,

Jarvis

Posted

Solution #1

1. Perform your find (i.e. for a letter "C")

2. Create a new script containing only the Perform Find script step. Turn on the "Restore find request" option for this script step.

3. Every time you perform this script, it will perform find with the same criteria.

4. Create a button on your layout and attach it to the script

Disadvantage of this solution is that you have to create a script and a button for every letter in the alphabet.

Solution #2

1. Create a global field called "gSearchLetter"

2. Create an indexed calculation field "cFirstLetter" calculating Left(firstandlastname, 1)

3. Create a self-join relationship (current and related files being the same), matching gSearchLetter to cFirstLetter

4. Use portal instead of list view

5. Use pop-up menu or radio buttons for entering data into the gSearchLetter field

This solution involves two clicks instead of just one to find the matching records but you don't have to create 26 scripts and 26 buttons.

There are other solutions, mostly mixture of the 2 mentioned above, just give your imagination some space.

HOnza

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