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

Backoffice Listview "Error Occurred" for GenericVariant attributes

Former Member
0 Likes
289

Hello experts, I have a custom backoffice listview of type Product where I show the Product properties. Is there a way to show properties from any of the child of the ProductModel?

In my case I would like to show the BaseProduct from the GenericVariant. So far it looks good, except for products that are already BaseProducts for which i get "Error Occurred" in the corresponding cell and related error logs stating that maybe the property does not belong to Product.

I am looking for config related solution. Thank you

Angelo

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member625836
Active Contributor
0 Likes

Hi ,

What I would suggest is using a proper SpEL as qualifier you check there if an element is of type GenericVariant. Please take a look at an expression below, yet bear in mind that is just to show you idea - I haven't test it, attribute name may differ, etc.

 #root instanceof T(GenericVariant) ? baseProduct : '-'

Cheers, Jacek