08 2021 档案
摘要:Step 33: Routing Back and History 路由退回 修改webapp/view/Detail.view.xml文件, 设置Page的 showNavButton 属性为"true" , 并增加处理事件 navButtonPress="onNavButtonPress"。 <
阅读全文
摘要:Step 32: Routing with Parameters 带参数的路由。 (比如我们跳转到详情页时,需要把我们选中的信息传过去,这时就需要带上参数) 修改 webapp/manifest.json 文件, 将Routes中,detai的Pattern更改为:detail/{invoicePa
阅读全文
摘要:Step 31: Routing and Navigation 路由和导航 修改 webapp/manifest.json 文件,增加如下信息(即定义路由 overview 和 detail,其中overview指向target:overview (对应视图为Overview )) { "_vers
阅读全文
摘要:Step 30: Debugging Tools 调试 修改webapp/view/InvoiceList.view.xml文件, 把其中的 ExtendedPrice 改为ExTendedPrice <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mv
阅读全文
摘要:Step 29: Integration Test with OPA 集成测试 测试Step 16中,打开Hello对话框功能。 新建文件 webapp/test/integration/NavigationJourney.js /*global QUnit, opaTest*/ sap.ui.de
阅读全文
摘要:Step 28: Unit Test with QUnit 单元测试 新增文件 webapp/test/unit/model/formatter.js, 对webapp/model/formatter文件中的statusText方法进行测试。 /*global QUnit*/ sap.ui.defi
阅读全文
摘要:Step 27: Mock Server Configuration 模拟服务器配置 增加webapp/test/mockServer.html 文件,修改其中src的值(这里我们引用1.92.1版本),修改resourceroots <!DOCTYPE html> <html> <head> <m
阅读全文
摘要:Step 26: Remote OData Service 在之前的开发中,我们都是用了本地的JSON数据来进行开发。这一步我们将调用OData接口,来提供我们所需的OData数据。 可以免费使用的Odata服务 https://www.odata.org/odata-services/ 修改 we
阅读全文
摘要:JDBG 用来调试已经执行过的JOB。 SM37,查询出已执行的JOB,选中后输入 “JDBG”, 回车即可进入调试
阅读全文
摘要:Step 25: Sorting and Grouping 排序和分组 修改 webapp/view/InvoiceList.view.xml 文件 <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" controllerName="sap.ui.
阅读全文
摘要:Step 24: Filtering 数据过滤:增加SearchField组件,用来对数据进行过滤 修改 webapp/view/InvoiceList.view.xml 文件, 增加SearchField组件 <mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.co
阅读全文
摘要:Step 23: Custom Formatters 自定义格式, 如果我们需要更复杂的逻辑。那需要使用自定义格式来实现 新增文件 webapp/model/formatter.js sap.ui.define([], function() { "use strict"; return { stat
阅读全文
摘要:Step 22: Expression Binding 表达式绑定。直接在视图中编写一些简单但逻辑表达式,用来控制页面(如按钮的编辑与只读) 在这个示例中,我们用表达式来控制numberState属性的值(具体表现为颜色,Error为红色,Success为绿色) 修改 webapp/view/Inv
阅读全文

浙公网安备 33010602011771号