头图

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

Tutorial Directory

illustrate

Jerry has been in contact 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 also come all the way from a SAP UI5 rookie. He knows that it is not easy for developers with only ABAP development background to transform into the 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 that beginners with zero foundation or little knowledge of SAP UI5 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 the 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.
In the previous step of this tutorial, we learned how to develop a simplest SAP UI5 application using the Table control based on OData V4.

In this article, we continue to add new functions to this table on the basis of the previous steps: filter (filtering) and sort (sorting) functions.

First look at the effect:

  1. In the search bar in the upper right corner of the table control, enter Guess and then click the icon of the magnifying glass to search, or filter:

This filtering function is implemented based on the LastName of the OData model, so now the table only displays the only user record whose LastName is Guess .

  1. Click another sort button on the toolbar to sort based on the LastName field.

After clicking, the LastName of the table row items is sorted in ascending alphabetical order. At the same time, there are a total of 19 pieces of data on the Mock Server, and this value is returned by the $count operation.

The following are the detailed implementation steps.


注销
1k 声望1.6k 粉丝

invalid