头图

A set of step-by-step learning tutorials for SAP UI5 beginners

About the Author

Jerry Wang, joined the SAP Chengdu Research Institute after graduating from the University of Electronic Science and Technology of China with a master's degree in computer science in 2007. Jerry is a SAP Community Mentor and a SAP China Technology Ambassador. In his 15-year career in SAP standard product development, Jerry has participated in the research and development of standard products such as SAP Business ByDesign, SAP CRM, SAP Cloud for Customer, SAP S/4HANA, and SAP Commerce Cloud (e-commerce cloud).

Jerry uses ABAP, Java, JavaScript and TypeScript for development, and has in-depth research on various SAP self-developed frameworks including SAP UI5.

Tutorial Directory

illustrate

Jerry has been in touch with SAP UI5 since joining the CRM Fiori development team of SAP Chengdu Research Institute in 2014. He has published many articles on the working principle and source code analysis of SAP UI5 in the SAP community and the WeChat public account "Wang Zixi".

In Jerry's article , a novice who knows nothing about SAP UI5, which materials are better to start with? As I mentioned, Jerry has come all the way from SAP UI5 rookie. He knows that it is not easy for developers with only ABAP development background to transform to SAP UI5 development field, so I designed this learning tutorial for SAP UI5 beginners in my spare time. , Divide the process of developing a complete SAP UI5 application into several steps, and strive to cover all the knowledge points involved in each step. These knowledge points may not be as in-depth as my UI5 source code analysis series articles, but strive to be easy to understand and easy for SAP UI5 beginners to understand.

The source code of each step of this tutorial is stored on my Github , identified by folders 01, 02, 03, etc. For example, the source code of step 1 is here .

Each step builds on the previous step with several new features added. It is recommended for beginners with zero foundation or little knowledge of SAP UI5 to learn step by step from the first step in order, download these codes to the local, cooperate with the text explanation of the tutorial, and do it yourself to deepen your understanding.

If you have any questions about each step of the tutorial, you are welcome to comment and leave a message in the article corresponding to the steps of the tutorial.

Before Jerry received a lot of private messages from friends, asking about SAP UI5 Table Control, how to achieve paging display effect. This tutorial will introduce this common requirement that many friends have asked.

The SAP UI5 table control does not support pagination out of the box. If the SAP UI5 list control is implemented based on the server-side model of OData, the list displays 20 pieces of data by default. More data is dynamically loaded by clicking the More button at the bottom of the list, which is called Growing or dynamic growth feature.

Every time the More button is clicked, the SAP UI5 list control will initiate a new data request to the OData server, provided that the OData service on the server side implements the pagination function (Pagination), that is, through the parameters of the OData protocol $skip $top , to return the content of a page requested by the client (ie SAP UI5 list control).

Assuming that each page displays 10 pieces of data, the SAP UI5 list control reads the data of each page separately through the following OData request:

  • $skip=0&$top=10 : Request the data of the first page, that is, the 1st to 10th data on the server
  • $skip=10&$top=20 : Request the data of the second page, that is, the 11th to 20th data on the server
  • And so on

This tutorial will follow the steps for the SAP UI5 list pagination display using the OData server-side model.

If the client-side model of JSONModel is used, that is, the data to be displayed in the list is all located locally (for example, in a JSON file), how to implement paging display?

The specific steps are as follows .


注销
1k 声望1.6k 粉丝

invalid