SAP CRM产品主数据页面的data loss实现逻辑

Created by Jerry Wang, last modified on Oct 05, 2016

Actually the data loss can only happen when the cross component navigation is initiated. For example you change the product description and click other work center:

The implementation of data loss is:

(1) Your click will trigger a cross component navigation. The navigation queue will be processed by UI framework:

(2) The UI framework will delegate call to our class. Here we evaluate if data loss logic should be really triggered. If yes, register ourselves as data loss handler.

In line 60, just set the data loss flag to true, which will be evaluated in step3.

(3) UI framework will evaluate if data loss dialog should be displayed.

Here we can also found the registered data loss handler in step2.

(4) Data loss dialog is displayed, clicking any button will trigger PROCESS_DATALOSS where Yes, No and Cancel button will be handled accordingly.


Since the navigation inside the same overview page will not trigger the method in step1, data loss logic will not be executed.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

汪子熙 CSDN认证博客专家 前端框架 Node.js SAP
JerryWang,2007年从电子科技大学计算机专业硕士毕业后加入SAP成都研究院工作至今。Jerry是SAP社区导师,SAP中国技术大使。2020年5月下旬,Jerry做了脑部肿瘤的开颅切除手术,对编程和人生又有了新的感悟。
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值