二维码

[教程] RESPONDING TO EVENT OF ANOTHER COMPONENT

Twilight发表于 2016-02-05 23:27Twilight 最后回复于 2016-02-05 23:27 [复制链接] 3207 0

Sometimes, it is necessary to respond to an event which is actually defined in some other component. it is very common scenario in SAP CRM WEBUI framework to use one component in another components.

DO_FINISH_INPUT method helps us to respond to those events which are defined in another components.
If you observe, it has got one parameter GLOBAL EVENT. This parameter will give you the event that has been triggered in another component. EX: I want to set one variable in the BP_HEAD overview class.
However, I want to set this variable only when certain event is raised in the BP_DATA component. Here BP_DATA has been reused in the BP_HEAD component.

We can place a break point in the method and after raising the event, we can know the value of GLOBAL EVENT. once we know the value, Redefine the method. Make a call to the super class as usually. After you can put your custom logic.

This is kind of tip. So I did not put screen shots. I hope this helps you. Thanks.
回复

使用道具 举报

快速回帖

本版积分规则
您需要登录后才可以回帖 登录 | 注册有礼

快速回复 返回顶部 返回列表