on 2019 Apr 17 3:54 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.