473,763 Members | 5,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance issue: combo vs pop-up form

NB
Let's say in the product table I have around 50,000 products (well,
infact it has now about 2000 only, but it's growing very fast, hence
the question here)

In the order form, users will select the product for the order lines.
They want to see the entire list of available products.

You can't handle the combo the way you've heard: limiting rowsource
until first few characters entered, because
- the product primary key is an autonumber
- and users want all the order lines display appropriately in a
continuous form

In that scenario, I load the entire product table into a pop-up
continuous form (with some search functionality for users to locate
the desired product), then when user double-click a line, assign that
productID value into a line in the orderline subform.

The question here is: Is that pop-up form approach more efficient than
combo box when the number of products reaching tens of thousand?

I would love to hear from anyone who's been there before
Thanks
NB
Nov 12 '05 #1
3 2012
On 29 Jan 2004 02:27:37 -0800, ni******@lycos. com (NB) wrote:
Let's say in the product table I have around 50,000 products (well,
infact it has now about 2000 only, but it's growing very fast, hence
the question here)

In the order form, users will select the product for the order lines.
They want to see the entire list of available products.

You can't handle the combo the way you've heard: limiting rowsource
until first few characters entered, because
- the product primary key is an autonumber
- and users want all the order lines display appropriately in a
continuous form
Actually, you can. What you need is 2 different representation of the
product, a foreign key lookup in the underlying query using an outer join, and
the combo box. Put the combo box behind the textbox, make the textbox locked,
disabled, then add a transparent button (not in the tab order) on top of all
that, and set its Click event handler to set the focus to the combo box.

When the user places the focus on the combo box by tabbing to it or by
clicking on it (actually the transparent button, but they don't see that), the
combo box comes to the front, but only on that row! All other rows still
display properly because they are showing the text box with the combo box
safely hidden behind.

I use this trick often.
In that scenario, I load the entire product table into a pop-up
continuous form (with some search functionality for users to locate
the desired product), then when user double-click a line, assign that
productID value into a line in the orderline subform.

The question here is: Is that pop-up form approach more efficient than
combo box when the number of products reaching tens of thousand?

I would love to hear from anyone who's been there before
Thanks
NB


Even though my trick works, you might want to go ahad and implement the pop-up
because it's highly likely that the user will want to search on something
other than the name, starting from the beginning of the name. There may be
other product fields they want to search on. In fact, the salesperson might
want to use that screen to help determine what product the customer is really
looking for, then just pick it to add it to the order.

Oh, and we could take this a step farther. Instead of having an order and a
pop-up, there could be an order form and a search/shopping cart form. Add
items to the cart on the search form, then select from -those- in a combo box
on the order form. The 2 forms would simply be 2 windows the salesperson
could toggle between rather than one popping up from the other.
Nov 12 '05 #2
NB
> Actually, you can. What you need is 2 different representation of the
product, a foreign key lookup in the underlying query using an outer join, and
the combo box. Put the combo box behind the textbox, make the textbox locked,
disabled, then add a transparent button (not in the tab order) on top of all
that, and set its Click event handler to set the focus to the combo box.

When the user places the focus on the combo box by tabbing to it or by
clicking on it (actually the transparent button, but they don't see that), the
combo box comes to the front, but only on that row! All other rows still
display properly because they are showing the text box with the combo box
safely hidden behind.

I use this trick often.
This trick sounds interesting. I will certainly use it for those large
- and - stable list. Thanks for sharing.
Even though my trick works, you might want to go ahad and implement the pop-up
because it's highly likely that the user will want to search on something
other than the name, starting from the beginning of the name. There may be
other product fields they want to search on. In fact, the salesperson might
want to use that screen to help determine what product the customer is really
looking for, then just pick it to add it to the order.

Oh, and we could take this a step farther. Instead of having an order and a
pop-up, there could be an order form and a search/shopping cart form. Add
items to the cart on the search form, then select from -those- in a combo box
on the order form. The 2 forms would simply be 2 windows the salesperson
could toggle between rather than one popping up from the other.


I have already implemented the pop-up form. It works fine.
If I understand correctly, your suggestion may add an unnecessary step
to the process: users have to search and put the wanted products into
the search form first. Then they have to select each orderline again
in the order form (with a filtered-rowsource combobox)?

(My approach sends the found product directly to the orderline)
I still would want to know if loading an entire large table (no
complex query, just the whole table) into a continuous form is more
efficient than loading that into a combobox.

NB
Nov 12 '05 #3
On 29 Jan 2004 14:32:02 -0800, ni******@lycos. com (NB) wrote:

....


I still would want to know if loading an entire large table (no
complex query, just the whole table) into a continuous form is more
efficient than loading that into a combobox.


Yes, it is vastly more efficient if the back-end is JET, but not if it's SQL
Server. I recommend avoiding it, but you can do it in a pinch with no
immediate consequences.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
1763
by: Tom Carrick | last post by:
Hi, In my attempted learning of python, I've decided to recode an old anagram solving program I made in C++. The C++ version runs in less than a second, while the python takes 30 seconds. I'm not willing to think it's just python being slow, so I was hoping someone could find a faster way of doing this. Also, I was wondering if there was a more builtin, or just nicer way of converting a string to a list (or using the sort function on a...
5
1396
by: Antonio Paglia | last post by:
Hi people, Dim rows as string = "item1;item2;item3....." Combo.DropDownStyle = ComboBoxStyle.DropDownList Combo.DataSource = rows.Split(";"c) Combo.SelectedIndex = -1 The combo is placed inside an MDI Child form. When the form is showed, the combobox allways apears with the first item selected. What is wrong ???
33
33760
by: Case | last post by:
#define SIZE 100 #define USE_MEMCPY int main(void) { char a; char b; int n; /* code 'filling' a */
2
2047
by: A | last post by:
I have a combo box that is databound to an ArrayList (IList to be more exact) I have a situation where if the user cancels a save I want the combo value to go back to blank. This should be SIMPLE. I have set the SelectedIndex to -1 I have set the SelectedValue to any option under the sun I have set the every other known property to a value that would clear the currently selected option.
17
2066
by: 57R4N63R | last post by:
I'm currently building a website for one of the client. There has been few errors here and there, but just recently the problem is getting worse. Basically the symptoms is that when the user try to access the page, it takes really long time to load. However, after up to 1 hour, the website will run fine again as normal. This issue has been there with the site. I usually just ask the system admin to restart the IIS Service. However, the...
5
2031
by: Varangian | last post by:
Hi, I have a performance issue question? which is best (in terms of efficiency and performance, I don't care neatness in code)... building an ArrayList of Object Instances using SqlDataReader OR using SqlDataAdapter to Fill a DataSet or DataTable ? Thanks!
1
4561
by: technocraze | last post by:
Hi guys, I am having trouble resolving this error. Below mentioned is my code and implmentation. MS Acess is my front end and sql server is my backend. What i want to achieve is to be able to insert StudentId in the table matching the values chosen in the combo boxes and listboxes. This sound more like searching the table to insert StudentId matching the criterias. I have set the necessary configuration for ODBC connection (File...
5
7270
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I have a class that is writen in unmanaged pure native C++. This class files (h and cpp) are inserted to a managed C++ (VC++ 2005, C++/CLI) DLL compoenet. This DLL compoenet is used in a C# application. My question is: Does the performance of the unmanaged pure native C++ class described above is the same if it was a in a pure unmanaged native C++ DLL component?
3
1981
rhitam30111985
by: rhitam30111985 | last post by:
Hi all.. i am trying to create a combo with the pop down list being modfied in real time as i type each character : import gtk window=gtk.Window(gtk.WINDOW_TOPLEVEL) window.connect("destroy",gtk.main_quit) combo=gtk.Combo() combo.set_use_arrows(True) wordlist= def entry_callback(widget,combo):
2
1178
by: Mr. B | last post by:
In my application, I have a Combo Box and Text Box. At Startup, I fill the Combo Box with information that I allow the Users to select to do certain Calculations. My Text Box shows a Value calculated by the information in the Text Box. At Startup, I have Default information in both boxes. Right now, a User selects a different line item in the Combo Box... and when
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6642
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.