cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Change Default Drag & Drop Action In Assortment View?

arthurjs2
Participant
599

Site environment is latest Hybris 6.7 in a b2b setting.

Within Backoffice Product Cockpit Assortment view,

The default action when drag-and-dropping products is to "Move" them. For our customer it would make sense that the default action is "Copy", since there is no Undo action after accidentally moving. Copying is trivial to undo.

Is there a way to have the default action stt "Copy" rather than "Move" within the Assortment view?

Thank you very much for any insight provided!

Accepted Solutions (1)

Accepted Solutions (1)

former_member682593
Participant
0 Likes

Hi,

You can do it by getting bean named dragAndDropConfigurationService and invoking setDefaultActionType(DragAndDropActionType.APPEND)

You can create your own bean that will depend on dragAndDropConfigurationService and do the logic above.

Thanks, Marcin

Answers (1)

Answers (1)

0 Likes

Thanks! what helped me to make it finally work beside this article was that one: https://answers.sap.com/questions/12768529/how-to-extend-service-class-ootb-from-backoffice.html

-> creating the custom bean in backoffice/src and not src/