Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Value List - Too many records

Featured Replies

I use a drop down menu that lists the name field from a different database. The problem is that this database has about 20,000 records. The result is that when you try to drop the list down it takes 15-20 seconds (sometimes longer!) to appear.

Does anyone have a solution for speeding this up or narrowing the list that is displayed so that I can find the required name faster etc.

Thanks

Nick

The primary approach would be to reduce the one large selection to a number of smaller selections. For instance, if you had a complete list of cities in a country, you might instead select a state and show a smaller list. Some type of categorization to reduce the 20,000 item list into a number of smaller lists.

-bd

I implemented a filter function for a client who wanted to limit the number of companies appearing in the drop-down list in a related file. This may help you:

In your main file, define field:

List_Filter_Key (global, text)

In your related file (the value list source), define field:

List_Filter_Foreign_Key (text, indexed) = Left (FieldName, 1)

Define a relationship between Main List_Filter_Key to Related List_Filter_Foreign_Key.

Then base your value list in Main on that relationship, drawing values from FieldName.

This is a basic filter which will populate the value list with entries beginning with the letter appearing in List_Filter_Key.

I hope this gives you a good start.

  • Author

Thanks Peter, I'll give it a go!

Nick

  • Author

I've implemented it and although it works fine, it doesn't seem to have made it any faster and I still have to sit there with the sqiggley line for about 15 seconds - Any ideas?

Well, off the top of my head you could eliminate the value list altogether and use the Paste from Index script step. That may be more your speed, heh heh. hm.

Maybe indexing the appropriate fields would speed things up?

I'd use a filtered portal: get a tip file named Clairvoyance at www.databasepros.com and see how it's done

Basically you'd have a global text field in the master file related to a field in the related file, calculated as:

Left (TheField,1) & "PP" &

Left (TheField,2) & "PP" &

Left (TheField,3) & "PP" &

Left (TheField,4) & "PP" &

...

[PP is a carriage return]

So if the field has value "abcd" the calc will return

a

ab

abc

abcd

.....

When in the master file you enter "abc" in the global field all records whose field starts with "abc" will be displayed in a portal

Entering more digits will filter more accurately; clicking on an portal row will launch a script that will select the item

There are then plenty of variations you might want to add, like filtering on more than one field, filtering also records who have the string in the middle of the field, moving the filtering to a Dialog file (my favorite) ...

In general it makes for a great interface, users love it and it's a real life saver when replaces value lists with hundreds of items

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.