on 05-30-2016 10:55 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.