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

How to back office list view (result) customization for showing relational type(list of items) values.

Former Member
0 Likes
1,702

I have promotions showing in back office while searching promotion rules in list view need to show all product brand.but each promotion is having multiple products with same brand need to show only one brand I done this this in *-backoffice.xml

   <context type="TRebate" component="listview" >
     <list:list-view xmlns:list="http://www.hybris.com/cockpitng/component/listView">
         <list:column qualifier="code"/>
         <list:column qualifier="label"/>
         <list:column qualifier="active"/>
         <list:column qualifier="priority" />
         <list:column qualifier="endDate" sortable="true" />
         <list:column qualifier="startDate" sortable="true"/>
         <list:column qualifier="Products.tBrand"/>

         <list:column qualifier="Products.tProductType" />
     </list:list-view>
 </context>

in result array showing "Error occurred"

in console getting : INFO | jvm 1 | main | 2018/10/30 15:10:13.251 | ERROR [hybrisHTTP4] [DefaultPropertyValueService] error parsing expression 'Products.tProductType' on object TRebateModel (8796093066976@2) INFO | jvm 1 | main | 2018/10/30 15:10:13.251 | org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 9): Property or field 'tProductType' cannot be found on object of type 'java.util.Collections$UnmodifiableRandomAccessList' - maybe not public?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi , Please check the line Products.tProductType change p with small case letter and try

Best Regards,

Former Member
0 Likes

Seems like you have missed the end of the comment and that results in malformed xml. Please note that you need the closing tag </list:list-view> . Apart from that I'm not sure what you're trying to achieve, but I do not think that embedding a list-view inside another list-view will work unfortunately.

Former Member
0 Likes

Please review below code ..

     <list:list-view xmlns:list="http://www.hybris.com/cockpitng/component/listView">
         <list:column qualifier="code"/>
         <list:column qualifier="label"/>
         <list:column qualifier="active"/>
         <list:column qualifier="priority" />
         <list:column qualifier="endDate" sortable="true" />
     <list:column qualifier="startDate" sortable="true"/>
     <list:column qualifier="products.tBrand" />
     <list:column qualifier="Products.tProductType" />
     </list:list-view>
 </context>
former_member1320010
Participant
0 Likes

i guess you will have to provide the context you are in too -

Former Member
0 Likes

Thanks for your response. I done also and not a problem with the xml problem with the while showing products.tbrand is having list of items in tPromotions how to show first value in list view.