摘要: https://sapui5.hana.ondemand.com/#/topic/723f4b2334e344c08269159797f6f796 自定义CSS 由于我用的项目是由WEBIDE创建的,已经有style.css文件,因此直接修改webapp/css/style.css文件 html[d 阅读全文
posted @ 2021-07-16 19:18 客于溟 阅读(98) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/17b87fbafb5a4474982760d2a3a73e69 边距和填充 使用sapui5中的标准CSS类, 来实现边距和填充。 修改webapp/view/App.view.xml文件,去掉Input组件的des 阅读全文
posted @ 2021-07-16 19:07 客于溟 阅读(99) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/4df1d914e52d4b1aa0805eb01522537e 使用Shell控件, Shell控件能实现不同设备屏幕大小的自适应。 修改webapp/view/App.view.xml, 增加Shell控件 <mv 阅读全文
posted @ 2021-07-16 18:58 客于溟 阅读(94) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/3b9d9f84930d43df90ad0789d99bd4a3 为了使页面更加美观,可以增加Panel控件,对数据进行分组。 修改webapp/view/App.view.xml,增加Panel的使用(在这里我们发现 阅读全文
posted @ 2021-07-16 18:55 客于溟 阅读(135) 评论(0) 推荐(0)
摘要: SE24 类中创建方法, 返回参数为表时报错如下: 必须完整地指定 RETURNING 参数的类型。typed. The type of a RETURNING parameter must be fully specified. 解决方法,定义表类型要指定是标准表、排序表或哈希表,并加上with 阅读全文
posted @ 2021-07-16 10:07 客于溟 阅读(431) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/8f93bf2b2b13402e9f035128ce8b495f 现在我们将程序配置相关的代码再次封装,统一放到manifest.json文件中。来达到配置和代码的深度分离 按照文档修改后, 程序执行报错。在浏览器中按 阅读全文
posted @ 2021-07-14 19:31 客于溟 阅读(130) 评论(1) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/4cfa60872dca462cb87148ccd0d948ee 在这一步中,我们将所有的UI资源都封装在component组件中,而不依赖index.html。 新建Component文件, 完整路径 webapp/ 阅读全文
posted @ 2021-07-14 19:12 客于溟 阅读(138) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/df86bfbeab0645e5b764ffa488ed57dc 在这一步中,我们将文本移动到一个指定的资源文件中。这样将便于我们管理和翻译。 增加i18n文件 webapp/i18n/i18n.properties, 阅读全文
posted @ 2021-07-13 19:19 客于溟 阅读(108) 评论(0) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/70ef981d350a495b940640801701c409 前面我们已经了解了View视图和Controller控制器,现在我们来学习MVC中的M(Model)模型。 在之前的程序中,我们增加一个Input控件, 阅读全文
posted @ 2021-07-13 18:48 客于溟 阅读(223) 评论(1) 推荐(0)
摘要: https://sapui5.hana.ondemand.com/#/topic/f665d0de4dba405f9af4294de824b03b 在sapui5中, 资源又被称作模块Modules。在这一步中,我们使用sap.m.MessageToast来显示消息。 修改controller文件 阅读全文
posted @ 2021-07-13 18:17 客于溟 阅读(139) 评论(0) 推荐(0)