on ‎2018 Oct 30 8:22 AM
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?
Request clarification before answering.
Hi , Please check the line Products.tProductType change p with small case letter and try
Best Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.