摘要: Step 32: Routing with Parameters 带参数的路由。 (比如我们跳转到详情页时,需要把我们选中的信息传过去,这时就需要带上参数) 修改 webapp/manifest.json 文件, 将Routes中,detai的Pattern更改为:detail/{invoicePa 阅读全文
posted @ 2021-08-10 15:17 客于溟 阅读(120) 评论(0) 推荐(0)
摘要: Step 31: Routing and Navigation 路由和导航 修改 webapp/manifest.json 文件,增加如下信息(即定义路由 overview 和 detail,其中overview指向target:overview (对应视图为Overview )) { "_vers 阅读全文
posted @ 2021-08-10 14:40 客于溟 阅读(146) 评论(0) 推荐(0)
摘要: Step 30: Debugging Tools 调试 修改webapp/view/InvoiceList.view.xml文件, 把其中的 ExtendedPrice 改为ExTendedPrice <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mv 阅读全文
posted @ 2021-08-08 14:05 客于溟 阅读(119) 评论(0) 推荐(0)
摘要: Step 29: Integration Test with OPA 集成测试 测试Step 16中,打开Hello对话框功能。 新建文件 webapp/test/integration/NavigationJourney.js /*global QUnit, opaTest*/ sap.ui.de 阅读全文
posted @ 2021-08-08 13:03 客于溟 阅读(101) 评论(0) 推荐(0)
摘要: Step 28: Unit Test with QUnit 单元测试 新增文件 webapp/test/unit/model/formatter.js, 对webapp/model/formatter文件中的statusText方法进行测试。 /*global QUnit*/ sap.ui.defi 阅读全文
posted @ 2021-08-08 12:45 客于溟 阅读(126) 评论(0) 推荐(0)
摘要: Step 27: Mock Server Configuration 模拟服务器配置 增加webapp/test/mockServer.html 文件,修改其中src的值(这里我们引用1.92.1版本),修改resourceroots <!DOCTYPE html> <html> <head> <m 阅读全文
posted @ 2021-08-07 22:50 客于溟 阅读(146) 评论(0) 推荐(0)
摘要: Step 26: Remote OData Service 在之前的开发中,我们都是用了本地的JSON数据来进行开发。这一步我们将调用OData接口,来提供我们所需的OData数据。 可以免费使用的Odata服务 https://www.odata.org/odata-services/ 修改 we 阅读全文
posted @ 2021-08-07 21:52 客于溟 阅读(221) 评论(0) 推荐(0)
摘要: JDBG 用来调试已经执行过的JOB。 SM37,查询出已执行的JOB,选中后输入 “JDBG”, 回车即可进入调试 阅读全文
posted @ 2021-08-06 16:27 客于溟 阅读(725) 评论(0) 推荐(0)
摘要: Step 25: Sorting and Grouping 排序和分组 修改 webapp/view/InvoiceList.view.xml 文件 <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" controllerName="sap.ui. 阅读全文
posted @ 2021-08-04 18:36 客于溟 阅读(94) 评论(0) 推荐(0)
摘要: Step 24: Filtering 数据过滤:增加SearchField组件,用来对数据进行过滤 修改 webapp/view/InvoiceList.view.xml 文件, 增加SearchField组件 <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.co 阅读全文
posted @ 2021-08-04 18:17 客于溟 阅读(104) 评论(0) 推荐(0)