cancel
Showing results for 
Search instead for 
Did you mean: 

Adding ordered="true" in existing many-to-many relation

Former Member
0 Kudos

We would like to add 'ordering' to an existing many-to-many relationship. so we added ordered="true" and did a platform update, and it did not work (we cannot order the items from HMC). On the logs, we see Ordering disabled for 'relation.ourType.source.ordered' message

Here is the relation definition:

         <deployment table="From2Rel" typecode="10001"/>
         <sourceElement qualifier="from" type="From" cardinality="many" collectiontype="list" **ordered="true"**>
             <modifiers read="true" write="true" search="true" optional="true" />
         </sourceElement>
         <targetElement qualifier="to" type="To" cardinality="many">
             <modifiers read="true" write="true" search="true" optional="true" />
         </targetElement>
     </relation>

On introspecting the table, I do see RSequenceNumber and SequenceNumber columns in the relation table (this was there even before adding ordered=true). The hmc.xml also has the appropriate editor defined :

Yet, the ordering in HMC does not work with the same error message Order disabled for .....

Any suggestions are appreciated.

Former Member
0 Kudos

Hi , did u find a solution to this ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Recently I was working on the same issue, to enable sorting function in relation. And even created an ECP ticket: https://jira.hybris.com/browse/ECP-1532

In general, supported ordered collection are defined in relations by ordered attribute (cardinality="many" collectiontype="list" ordered="true”), If there is no such attribute, it doesn't support sorting.

In the furture, hybris will disable Drag and Drop feature for sorting in case of confusing,

Thanks