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

How to add drag&drop functionality to backoffice promotion actions reference list

jseidl
Explorer
0 Kudos
726

Hi experts, I've created a promotion (using hybris 6.0 promotionengine) and defined a RuleActionDefinition with a RuleActionDefinitionParameter denoting a list of products. Since the ordering of the list is relevant, I'm trying to figure out, how I can add drag&drop functionality to the list of products. The default multi reference editor which is used in the backoffice does not support it (see screenshot).

The rule action parameter's 'type' is "List(ItemType(Product))".

Any ideas how to make the list sortable? Thanks, Joachim

View Entire Topic
former_member632755
Active Contributor
0 Kudos

Hi,

as Jose answered - DnD is not yet supported in the editor. As of today you would have to implement a new type of reference editor that would allow for re-ordering of elements. I will report and improvement for the described issue, nevertheless the implementation won't be available before 6.2, even if it will get prioritised high.

Cheers, Wojtek

jseidl
Explorer
0 Kudos

Hi, Thanks you. Just browsed through the backoffice - at least for order history entries, the multi reference editor supports DnD. So I guess, the improvement is to make this kind of editor work for promotion rule conditions/actions.

jseidl
Explorer
0 Kudos

Hi Wojciech, Would you be so kind as to post a link to the jira issue covering this improvement so we can track the status? Our customer is highly interested in it. Thank you, Joachim

jseidl
Explorer
0 Kudos

There is a "dirty" workaround for adding drag&drop functionality to a list of products. I defined the RuleActionDefinitionParameter with the type "Map(java.lang.Integer, ItemType(Product))", the key (integer) describing the position, the value containing the productcode. This makes reordering in the backoffice possible - but the customer needs to maintain the map-key manually. Advantage: When dragging&dropping, the int-key stays the same, only the product moves..