cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh productcockpit editor area on adding a classification class to the product.

Former Member
0 Kudos

Hi, I have a requirement to show the immediately show the correct features under the "attributes" section in the productcockpit whenever a new classification class is added to a product. For example, if there is a classification class named "Classification1" having attributes 'a' and 'b' and another class named "Classification2" having attributes 'c' and 'd'. If I add Classification2 to a product, the attributes 'c' and 'd' should appear under the "attributes". I think refreshing the editor area will suffice. How do I implement this? Please state any other solution for this problem if there is a better one. Thanks.

Former Member
0 Kudos

I have written an interceptor class which works on the product model and is activated whenever any changes are made to the product model. From here how do I refresh the productcockpit editor area?

Former Member
0 Kudos

Hi Abhinav,

I am also having the similar requirement. Did you get solution to the above problem using validator?

Thanks in advance.

Regards, Neeraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Could not get the interceptor to work but was able to fulfill the requirement by taking a different approach : https://wiki.hybris.com/display/forum/Product+Cockpit+-+Refresh+Editor

abhinavsingh11
Participant
0 Kudos

I tried this approach but it is giving "Cannot set property classname of name" error sometimes. Any help is appreciated.

Answers (0)