Created by Jerry Wang, last modified on Jan 16, 2015
- sap.ushell.services.AppConfiguration.getMetadata
- sap.ui.getCore().getEventBus().publish(“openApp”,f);
- sap.ui.controller.openSomething
- openDashboard
在UI上点击了navigation target之后,UI framework首先会去取target component的metadata:
由于addMetadata method 调用时,metadata还不ready,因此会在runtime时去retrieve:
最后使用AJAX call:
By Andreas:“This preload file can only be produced by our internal (complex) Maven-based build and by the Control development tools in Eclipse which I think are not available outside yet, either.”
update 2017-11-23 5:34PM
它是一个压缩的js,在upload本地的js到UI5 repository时自动生成的。
上传之后我们的BSP下面有一个mapping的xml:里面可以找到Component-preload.js对应的文件,文件名为一串guid
要获取更多Jerry的原创文章,请关注公众号"汪子熙":