如何修改SAP UI5本地库文件

You meet with issues when you send odata request to backend:

clipboard1

You observe in the local version js file, line 1655, the sUrl population logic is wrong:
the check against length is missing.

clipboard2

In another version of the same file, the expected check logic is there.

clipboard3

You would like to make changes on the local js file.
Step1: find out the jar file name which contains the js file you want to change and also the local path of the jar file in Network tab:

clipboard4

jar file: com.sap.ui5.core_1.24.1.jar

clipboard5

Step2: extract the .jar file, make local changes there:

clipboard6

Step3: re-pack the whole extracted folder via jar command below:

clipboard7

Step4: replace the old jar file with the jar file generated in step3:
C:\myProgram\sapui5-ide-kepler-win32.win32.x86_64\plugins

clipboard8

Relaunch tomcat and the modified source code of .jar file will be loaded.

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

展开阅读全文
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值