In previous blog Create a CRM Service Order Fiori application within a couple of minutes I introduced the approach to generate a Fiori application which supports search and display on Service Order within just a few minutes. In this blog, I will use one field in Service Order header level to demonstrate how to enable Service order change and save function.
After finished, the Fiori application has the following feature: When you click edit button:
The fields in UI will become editable:
Change the posting date via Date picker controller and click save button, the change is successfully saved to backend:
Implementation detail
(1) Most of CDS entities described in previous blog remain unchanged, only a small adaptation is needed, as highlighted below:
The reason is, since we need to support update scenario, we have to explicitly tell framework about this fact via annotation “transactionalProcessingDelegated“. Meanwhile, the automatically generated service provider class by annotation @OData.publish: true could not fulfill the update scenario – we have to create a new SEGW project via tcode SEGW manually, so we have to mark this flag as false to suppress the service automatically generation. Finish the change and re-activate the consumption view.
(2) tcode SEGW, create a new SEGW project and choose Reference->Data Source from context menu, load the CDS view you change in previous step.
Once done, you should have the following hierarchy displayed. Generate Runtime Objects by clicking the button in toolbar.
(3) Redefine three methods of automatically generated data provider class:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
UI5-FIORI 是一个功能强大且灵活的开发环境,旨在帮助开发者快速搭建和测试 Fiori 应用程序。通过本文档,开发者可以快速了解 UI5-FIORI 的安装和配置、基本设置、Gateway 测试和 UI5 开发等内容,并快速开始 Fiori ...
Fiori的方式开发响应式SAPUI5应用程序
SAPUI5, SAPFiori简介,更多信息:http://edu.csdn.net/course/detail/5046
SAP UI5项目实践,SAPUI5是SAP推出的一个前端框架,对移动设备友好
什么是SAP Fiori SAP UX策略 SAP Fiori设计指南(Design Guideline) SAP Fiori运行环境 SAPUI5与OpenUI5 OpenUI演示
SAP S/4 UI5 FIORI开发
本文档描述了如何搭建SAP Fiori应用程序的开发环境,应用程序开发语言为SAPUI5。
SAPUI5, SAP Fiori开发工具介绍文档, 更多:http://edu.csdn.net/course/detail/5046
SAP Fiori Elements Development UX 403
SAP S4HANA frontend fiori详细配置文档,以及简单权限配置
ui5-fiori:教育SAP UI5,Fiori
该应用程序由三部分组成:以自由式SAPUI5实现的最终用户UI,使用Fiori元素生成的元数据驱动的管理员UI和基于Node.js的CAP后端。 虽然代码实现了完整的端到端全栈应用程序,但它应保持尽可能的简单,并且主要重点是...
SAP fiori的简易开发过程指南,从开发者角度出发,分后面ODATA开发环境和前端SAP UI5环境搭建,以及发布进行了讲解
SAPUI5常用部署的环境介绍,更多请参阅:http://edu.csdn.net/course/detail/5046
SAP Fiori SAP Fiori SAP Fiori Architecture Architecture Overview to Deep Overview to Deep Dive -with with focus on S/4 HANA focus on S/4 HANA
SAPUI5教程,开发必备知识点,更多:http://edu.csdn.net/course/detail/5046
像fiori一样的ui5 来自“类似Fiori”的SAP UI5指南中的项目以及用于新测试的一般游乐场
以下是SAP Fiori的三种方案:交易应用程序(Transactional apps),分析应用程序(Analytical apps)和实况报告报表(Fact sheets)。每个方案都有其特定的系统或软件要安装。通过阅读本文档,它可以根据所需的系统...
SAPUI5 Fiori 示例应用程序 归功于的让我开始 sap.ui.table 视图 没有 mvc,一切都在 index.html 里面 CRUD 操作一切正常 - 建设中 sap.m 移动视图 主从设计模式 MVC CRUD 操作 模拟服务器 格式化程序
SAP UI5作为前端开发框架,使用SAP Gataway开发后端OData Service