前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP CRM产品主数据页面的data loss实现逻辑

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

作者头像
Jerry Wang
发布2020-07-06 23:43:58
3030
发布2020-07-06 23:43:58
举报

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.

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-07-04 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Created by Jerry Wang, last modified on Oct 05, 2016
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档