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

Not able to modify a standard relation to ordered

0 Likes
449

In the CategoryProductRelation relation, for the supercategories, I am trying to switch to ordered to be able to reorder this through Backoffice with Drag&Drop.

    <relation code="CategoryProductRelation" autocreate="true" generate="true" localized="false">
<deployment table="Cat2ProdRel" typecode="143"/>
      <sourceElement qualifier="supercategories" type="Category" cardinality="many" ordered="false">
          <description>Super Categories</description>
         <modifiers read="true" write="true" search="true" optional="true"/>
      </sourceElement>
      <targetElement qualifier="products" type="Product" cardinality="many" collectiontype="list" ordered="true">
          <description>Products</description>
         <modifiers read="true" write="true" search="true" optional="true"/>
      </targetElement>      
   </relation>

Even when you try to customize it via 'ant customize', backoffice after reordering elements and save, the categories are restored to the initial order without any sort impact.

Example:

  • Before to modify order:

  • Manually modifying the order:

  • After saving the model the order is restored to original sort

Is it possible to apply the ordered logic on Backoffice for redefining standard sort option?

Is it possible to redefine this relation without use 'ant customize'?

Accepted Solutions (0)

Answers (1)

Answers (1)

mansurarisoy
Contributor
0 Likes

I have 2 suggestions for you to investigate

  1. Try redeclaring the source attribute with redeclare property. (Reference: https://help.sap.com/viewer/d0224eca81e249cb821f2cdf45a82ace/2011/en-US/8bffa9cc86691014bb70ac2d0127... under Redeclaring Attributes section)
  2. You may investigate the following properties, they are used to disable ordering mostly, but may work for other way around, not sure.
relation.CategoryProductRelation.source.ordered=false
relation.CategoryProductRelation.target.ordered=false

I'm not sure whether they will work or not, but you may give a shot.