Programming Question.

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?

-----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/

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-----

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)

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.