Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

Combo boxes.... too many lines... argh

Posted 13 Jun 2002 11:03:35
1
has voted
13 Jun 2002 11:03:35 Julio Taylor posted:
hey,

i'm using a menu/list for users to select a company name from. The problem is that there are over 1,500 company names in this list, and it's a real pain in the ass to find the correct one.

Does anyone have any ideas as to how i can make this process easier? I remember MSAccess had searchable combo boxes that auto-filled whatever you typed into the boxes..... does anyone have an idea? maybe a popup menu?

Cheers!

Replies

Replied 13 Jun 2002 13:35:03
13 Jun 2002 13:35:03 Viktor Farcic replied:
Listbox can be searched via first letter. Just open it and press something on a keybord. Selection will jump on a first item that starts with that sign.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
hey,

i'm using a menu/list for users to select a company name from. The problem is that there are over 1,500 company names in this list, and it's a real pain in the ass to find the correct one.

Does anyone have any ideas as to how i can make this process easier? I remember MSAccess had searchable combo boxes that auto-filled whatever you typed into the boxes..... does anyone have an idea? maybe a popup menu?

Cheers!
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Viktor Farcic
www.farcic.com
TalkZone Manager
Replied 13 Jun 2002 13:38:20
13 Jun 2002 13:38:20 Julio Taylor replied:
Yeah but the problem is that in our database we end up with over 200/300 entries all beginning with the same letter and it becomes difficult to pin-point the right one. I've been thinking about maybe using a separate page to select these value using a search form and then passing through using session vars or maybe URL vars.... but that would be a problems because it would limitt the flexibility of the form, andit would mean creating (and maintaining) a higher number of pages.

I'm quite perplexed at the problem.

-- Julio
Replied 14 Jun 2002 11:02:38
14 Jun 2002 11:02:38 Matthijs Horsman replied:
Maybe all these company have some specific details, like there in one place or some thing like that, so you let the user first choose a place and then you filter the next combo with this place and maybe you can add some other stuff.. This way you help the visitor with his search....



Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
www.chaps.nl
Replied 14 Jun 2002 12:23:08
14 Jun 2002 12:23:08 Julio Taylor replied:
Unfortunetly, all these companies are Suppliers, and they all really should be listed together.

-- J
Replied 15 Jun 2002 05:28:03
15 Jun 2002 05:28:03 Andrew Watson replied:
Add a wee form beside the listbox that will quickly filter the source recordset ...

:: Son, im Thirty.... ::
Replied 16 Jun 2002 15:03:22
16 Jun 2002 15:03:22 Matthijs Horsman replied:
What's a wee form?

Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
www.chaps.nl
Replied 17 Jun 2002 14:48:02
17 Jun 2002 14:48:02 Vince Baker replied:
Is it possible to catagorise the companies so in 1 menu you could reduce the number of possible companies in a second list?

If this would work and you dont have the code to do it let me know.

Vinny

Replied 17 Jun 2002 15:26:49
17 Jun 2002 15:26:49 Julio Taylor replied:
Vinny,

I think maybe filtering the companies alphabetically would be a good thing, maybe a drop menu to select the 1st letter and then the 2nd menu/list shows the actual filtered companies...

I would appreciate any code you could post for me <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

Thanks!
Replied 17 Jun 2002 16:46:13
17 Jun 2002 16:46:13 Vince Baker replied:
Here is a client side version (if an intranet use this as loading time is not that high and functionality is much better)

Follow the guide here....works really well

www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listbox.htm

The other option is to add a jump menu that has each of the letters of the alphabet.

Inser a jump menu and set 'Select First Item after URL change' to ticked in the window that opens when you add a jump menu.

Then send this value to the same page in the URL and just filter the recordset getting all of your company values on the letter. (there is functionality for filtering on values starting with... in the Simple Recordset window).

I use both a lot but the first is always my favourite choice for Intranet....

Let me know if you have any grief with it.

Vinny

Replied 17 Jun 2002 17:25:34
17 Jun 2002 17:25:34 Andrew Watson replied:
A wee form is just what it says, a small form, one text field one button, you write a search string in and press the button the page refreshes with the filtered combo contents. tada...
could do it like above with a alphabetical list to filter but that restricts you to filtering by the first letter, so a WEE form will do just grand. it will allow you to get what you want.

Cheers
Leed


:: Son, im Thirty.... ::
Replied 17 Jun 2002 17:35:16
17 Jun 2002 17:35:16 Vince Baker replied:
Leed....your solution is better than mine...but then most peoples are!.

Poolio,

Go with his solution

Vinny

Replied 18 Jun 2002 02:01:24
18 Jun 2002 02:01:24 Andrew Watson replied:
the more solutions the merrier...

:: Son, im Thirty.... ::
Replied 18 Jun 2002 11:22:33
18 Jun 2002 11:22:33 Julio Taylor replied:
Leed,

Your solution seems to be the easiest and most effective one. Thanks a lot. The funny thing is i use the same bloody concept in another page, but i was too think to work out the application to a drop-menu instead of a repeat region <img src=../images/dmxzone/forum/icon_smile_tongue.gif border=0 align=middle>

Thanks a lot to all of you for you help!

--Julio

Replied 18 Jun 2002 14:20:15
18 Jun 2002 14:20:15 Julio Taylor replied:
Crap... there's a new problem,

when i submit the form (using GET pointing to the same page) the combo/listbox is not refreshing with the updated data. The URL string actually reflects the criteria i'm specifing (e.g. page.php?com_name="Name" but the combo box doesn't respond.

Any ideas?

Thanks!
Replied 18 Jun 2002 14:27:13
18 Jun 2002 14:27:13 Andrew Watson replied:
What is your rs code for the combo?


:: Son, im Thirty.... ::
Replied 18 Jun 2002 14:29:25
18 Jun 2002 14:29:25 Julio Taylor replied:
SELECT *
FROM com_master
WHERE com_name LIKE '%MMColParam%'
ORDER BY com_name ASC

Where MMColParam = $HTTP_GET_VARS["com_name"]

this code works on Repeat Regions, but not the Combo box.

i hope this helps.

--J

P.S. i killed kenny

Edited by - poolio on 18 Jun 2002 14:30:35

Reply to this topic