on 2016 Jun 24 11:12 AM
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
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.