SAP Fiori里两种弹出对话框(popup dialog)设计
发布日期:2021-06-30 14:25:34 浏览次数:2 分类:技术文章

本文共 1231 字,大约阅读时间需要 4 分钟。

This blogs introduces the tips how to find the location of source code where the popup dialog is raised.

There are two kinds of popup dialogs in Fiori ui.

Type one: Model Dialog based on IFrame
For example, if I click the glass icon, and then there is one dialog popped up. I need to know which line of code has raised this popup dialog and why.

Solution

Set the breakpoint on the function createIFrameDialog below. You can find Shell.view.js via the path below.

And then click the icon again, breakpoint is triggered.

From the callstack I can understand the usage of this dialog is for XHR logon, since it is necessary to also retrieve remote catalog information from another system, Q7D:

Type two: Message dialog

You can see one example below.

And now your requirement is to find out which line of code has raised it.

Solution

(1) Search keyword sap.ca.ui.dialog.factory in Chrome development tool. Click the file factory-dbg.js:

Set the breakpoint on function _openDialog.

(2) Repeat the operation to trigger the breakpoint. When breakpoint is triggered, check the inner callstack and then we can know the error dialog is poped up because of the failure metadata load in function checkModelMetaData:

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

转载地址:https://jerry.blog.csdn.net/article/details/108015280 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP Fiori里Contact Support的按钮渲染逻辑
下一篇:SAP UI5自学教程一:button.js的加载逻辑

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2024年04月17日 12时40分08秒