cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement to refresh the product's price rules in the browser context area when ever you click on a new product in the product cockpit .

Former Member
0 Kudos
157

We have requirement to refresh the product's price rules in the browser context area when ever you click on a new product in the product cockpit . Actual Behaviour: When you click on a product from Product-Cockpit, products editor area is loaded. From there in the editor area if you click on the prices, price rows will be displayed in the BrowserContextArea. Now when you click on the another product, then editor area is loaded with new products details, but the BrowserContextArea still showing pricerules of the previous product.

Expected Behaviour as per requirement: The bottom BrowserContextArea should reload and display the pricerules of the current product rather than the previous product.

How to achieve this??

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Guys, the below piece of code worked for me.

UISessionUtils.getCurrentSession().getCurrentPerspective().getBrowserArea().update();

Whenever you click on new product, internally it is calling "createViewComponent()" in class "ContextAreaReferenceCollectionUIEditor" , so I just extended the class "ContextAreaReferenceCollectionUIEditor" and overridden the createViewComponent() method to add the above piece of code to refresh the browser area just before the flow gets exit from this method. Cheers, Santosh.