use case of SAP CRM WebClient UI ON_NEW_FOCUS method

268 阅读1分钟

Created by Jerry Wang on Dec 09, 2014

It is very common to use get_next method of a collection wrapper instance, which will delegate to the corresponding method of bol collection instance:

clipboard1
clipboard2

Just click F5 to view how this event is handled:
clipboard3
If we have hierarchical context node in a UI view, we set up connections among them in method CONNECT_NODES of context node class. Connections means if the focus on a parent node has changed, the focus of all dependent nodes registered via CONNECT_NODES will be refreshed automatically.
clipboard4
how to react on focus_change event?
clipboard5
clipboard6
clipboard7
clipboard8

Then our registered event handler on FOCUS_CHANGED will be triggered:
clipboard9