# Programming Question.

**URL:** <https://forums.suse.com/t/programming-question/23004>\
**Category:** Chatting over the Back Fence\
**Created:** [August 22, 2012, 10:44pm UTC](https://forums.suse.com/t/programming-question/23004 "2012-08-22T22:44:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [August 22, 2012, 10:44pm UTC](https://forums.suse.com/t/programming-question/23004/1 "2012-08-22T22:44:04Z")

</div>

A question for a programmer - I’m not one.

A websites was developed using .NET. The site has data stored in a database  
and the users can pull up lists (one at a time) with about a hundred items  
in each of them and they can then select items, one at a time, click a  
button and it moves them into a new blank list which they can then save.

The current way is too slow for the users as they could need to select 50  
items from a list and only being able to move one item at a time to the new  
list just takes too long.

The site needs to be modified so that the users can select more than one  
item at a time using shift and click and ctrl and click so that they could  
select all the items they need in one go from the list, click the button and  
move them to the new list.

I’ve been told that this will be difficult to do. Is this right?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [August 22, 2012, 11:03pm UTC](https://forums.suse.com/t/programming-question/23004/2 "2012-08-22T23:03:51Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

No. It sounds like they’re using a drop-down, but what you need is a  
multi-select list. Each entry will have its own value and handling them  
all, at least in PHP, is pretty simple, though perhaps because of some  
PHP conventions. I’d be surprised if it was hard in other languages,  
but I’ve only done web programming in PHP and a tiny bit of Java.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.18 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQIcBAEBAgAGBQJQNTsnAAoJEF+XTK08PnB5HNEP/0r28rg2gi1GYwx9dB3PV1gO  
zEPuceXwDBg8k59IXm02bTU7wJAmFZ/5ZQdKzzPPCeVrVMl7xCxDrQXBaDBR+6w+  
hOMEFtMcK9QyJMMrk71LYJZFJHGbtYBrXNKdLo0tmuTnkp1JGrA0IUfKhIeqxUFp  
S7YgtFvpsFol9H1dCv7GqzTCXZ4qoF2Tkh2R8S+/UY2x7DqTL0/PRWqRW38pF5Im  
B5I2Z2bN+ejkJwvHd8bc9jgMV6Mdu0Zxdg+tbNUJvy0NMlcGNYmD3qYWP6A+QkgQ  
LWwxU16xvHHCEoUD1lvgrlstKPM+TE6fskVY1H7JvZ+l7d+pDMlcKCS0HGdk++p/  
oTfyCTSysEA0VtO8x4y2I7IXBhhxzVa/FL5WHRY0Oc01njgUMRob03tBradvHBF/  
l7IJaNwEp+Tsp5bWI/dW0wzBEOiVQFr6qNUL+lOa9bR/jU85lhkFaoNjZk8CyNms  
W/4ORSUdn0fDdlBAZYM9VzjPN8ZzVYpqAuXxNA3V4yzpAuyR+3hcN+iJ8yYnNuGF  
+rBZsTHf8uC8Ty++IO3O5Pji0AdGKT2NUfbGhyq7ayIkjQ445KsVcOsxuXJtwcM8  
AW4sQEz3zUcL7S3b0tj14XvpVFIbRlIxBladk3MHm6tWAQrPNK5zZbYRwaWYGXZT  
+mnoMGy1KLRNC5O4GLBI  
=HwDm  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [August 23, 2012, 3:11pm UTC](https://forums.suse.com/t/programming-question/23004/3 "2012-08-23T15:11:23Z")

</div>

On 22/08/2012 20:44, Arthur wrote:[color=blue]

> A question for a programmer - I’m not one.
> 
> A websites was developed using .NET. The site has data stored in a database  
> and the users can pull up lists (one at a time) with about a hundred items  
> in each of them and they can then select items, one at a time, click a  
> button and it moves them into a new blank list which they can then save.
> 
> The current way is too slow for the users as they could need to select 50  
> items from a list and only being able to move one item at a time to the new  
> list just takes too long.
> 
> The site needs to be modified so that the users can select more than one  
> item at a time using shift and click and ctrl and click so that they could  
> select all the items they need in one go from the list, click the button and  
> move them to the new list.
> 
> I’ve been told that this will be difficult to do. Is this right?[/color]

should be able to do a javascript “button” with an onclick event that  
select()s all the elements in the list. Standalone, static code with  
nearly no modification required (hence, avoiding all the messy  
programming if a “select all” will do)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [August 24, 2012, 5:16pm UTC](https://forums.suse.com/t/programming-question/23004/4 "2012-08-24T17:16:09Z")

</div>

On 8/22/2012 12:44 PM, Arthur wrote:[color=blue]

> A question for a programmer - I’m not one.
> 
> A websites was developed using .NET. The site has data stored in a database  
> and the users can pull up lists (one at a time) with about a hundred items  
> in each of them and they can then select items, one at a time, click a  
> button and it moves them into a new blank list which they can then save.
> 
> The current way is too slow for the users as they could need to select 50  
> items from a list and only being able to move one item at a time to the new  
> list just takes too long.
> 
> The site needs to be modified so that the users can select more than one  
> item at a time using shift and click and ctrl and click so that they could  
> select all the items they need in one go from the list, click the button and  
> move them to the new list.
> 
> I’ve been told that this will be difficult to do. Is this right?
> 
> [/color]  
> Trivial. At least the way you describe it, all that needs to happen is  
> the javascript onclick in the button needs to made a for loop, and the  
> select boxes made multiselect ok.
