SAP CRM产品主数据页面的ON_NEW_FOCUS方法设计

Created by Jerry Wang on Oct 06, 2016

In product overview page you see lots of context node with method ON_NEW_FOCUS implemented:

SAP CRM产品主数据页面的ON_NEW_FOCUS方法设计

The reason is: as long as the current focus root object in current collection wrapper changes, the corresponding dependent object should be refreshed as well. This synchronization is done by event handler: ON_NEW_FOCUS.

For example, once the cancel button is pressed, the focus change event is raised below:

SAP CRM产品主数据页面的ON_NEW_FOCUS方法设计

and finally the event handler implemented in dependent context node will react on this focus_change event and refresh related dependent node accordingly.

SAP CRM产品主数据页面的ON_NEW_FOCUS方法设计

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
SAP CRM产品主数据页面的ON_NEW_FOCUS方法设计