• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Qaulity Standards for Maximum no of items in SELECT tag

 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me what should be the maximum number of items in select t tag in JSP/HTML?
Suppose I'm giving 10,000 items, then isn't the browser will be overloaded and network utilization will be more.
Thnx in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's equally important is at what point the user overloads. Is it really useful to return that much data to the user?
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In such cases it may be better to provide the data in another way.
Maybe split it up in logical subgroups which the user is presented with first after which only the items belonging to that subgroup are shown.
Of course there may be no such division possible with your data, in which case you are basically suckered :roll:
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my organization, We've 20,000 employees. At many places, I've to give select list for selecting employee.
Is it advisable to have SELECT fields there for such a huge data.
Should I give only staffno as entry to be made ( of course not from list) ??
 
Winston Smith
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think a SELECT is certainly out of the question. I would seperate the employees into logical, manageable units (as suggested in a previous post), and display these units. For instance, you may break it down by departments, divisions, branches, etc. Whatever your company, I'm sure it has some type of organizational units. Once the user selects a department, you can display a scrollable table of employees in alphabetical order, but also provide the user with the ability to search, so they can quickly find the employee they're looking for.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or provide search filters that narrow down the results list.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in your case, take several selects. For example, split them up by department (or even finer).
Search function also helps. Let users search on department, first name and/or last name and present a separate page with all matching names (paginated if needed). User clicks a name and that gets shot into the application proper.
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, department wise logical separation is possible. However it will increase the screen size and activity from user end. But it seems this is the only way to get through. Thanks.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't increase screensize if you push the selection into a popup window.
Say give the user a chance to enter an employee name or number and a button. If (s)he presses the button the popup appears with your dropdowns (possibly using any entered value as search criteria).
On making a selection from the department list, the popup reloads and fills the second list with employees for that department.
On making a selection there and pressing a button, the values from the popup are stored by a piece of Javascript in the main screen (for example in that edit box and maybe a hidden field).
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say do a double combo script
dropdown1 - dropdown2
dropdown one contains department listings or alphabetical ranges (A-D;E-G)
you post back to the server and fill the second dropdown..you can use JavaScript to fill the second one too if you do not want to post back.
Eric
 
S Santosh Kumar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eric and Jeroen for your valuable inputs.
Santosh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic