Hello,
When dropping an employee in the teammember grid, like in the example of http://www.smartclient.com/smartgwtee/showcase/#row_drag_save , what is the recommended way to prevent duplicates in the team (in the example this is not checked by the way)?
I could think of a few approaches. Is it for instance best to put a key/unique index on some database columns, and let the query fail, then somehow handle this?
Or do this check locally, and do a set union, and only save the ones that are not in the target set already (ie. ignoring the other ones, which seems the most user-friendly way).
Or both?
I am asking this because I am thinking about implementing some stuff like this using drag'n'drop, and want to discuss some approaches.
When dropping an employee in the teammember grid, like in the example of http://www.smartclient.com/smartgwtee/showcase/#row_drag_save , what is the recommended way to prevent duplicates in the team (in the example this is not checked by the way)?
I could think of a few approaches. Is it for instance best to put a key/unique index on some database columns, and let the query fail, then somehow handle this?
Or do this check locally, and do a set union, and only save the ones that are not in the target set already (ie. ignoring the other ones, which seems the most user-friendly way).
Or both?
I am asking this because I am thinking about implementing some stuff like this using drag'n'drop, and want to discuss some approaches.
Comment