cancel
Showing results for 
Search instead for 
Did you mean: 

How to show an attribute of an Object which is part of the Order object in backoffice list view?

0 Kudos

I want to show an attribute of an object which the object is part of the Order. Ex OrderModel has consignments, and in the consignment I want to get one of its attribute. How are we going to do this in Backoffice to be displayed in the listview?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Please try this:

     <list:list-view xmlns:list="http://www.hybris.com/cockpitng/component/listView">
     <list:column qualifier="order.code" />
            <list:column qualifier="order.name" />
     </list:list-view>
 </context> 
Former Member
0 Kudos

you need to write a formater for this like

     <context type="consignment" component="base" merge-by="type" parent="GenericItem">
         <y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
             <y:labels>
                 <y:label>code + '-' + name</y:label>
             </y:labels>
         </y:base>
     </context>
 

0 Kudos

What if I want to have two columns for code and name, how to separate the code and name?