头图

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

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 , what are the best materials for beginners who know nothing about SAP UI5? once mentioned that Jerry has also come all the way from SAP UI5 rookie, and knows that it is not easy for developers with only ABAP development background to transform to SAP UI5 development field, so I designed this study for SAP UI5 beginners in my spare time. The tutorial divides the process of developing a complete SAP UI5 application into several steps, and strives 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. respectively.

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.

In this step, we introduce how to continue using jQuery and the native DOM API that comes with the browser in the JavaScript code of the SAP UI5 view controller.

All source code for this step can be downloaded at this Github address:

https://github.com/wangzixi-diablo/ui5-tutorial/tree/main/45

We run a SAP UI5 application arbitrarily, open the Chrome developer tools Network panel, use the shortcut key Ctrl + O, and then enter jQuery, we can see a series of loaded files containing jQuery keywords, which shows: The bottom layer of the SAP UI5 framework Based on jQuery, jQuery's API can still be used when developing SAP UI5 applications.

Look at an actual requirement. Suppose we need to use console.log to print out the ids and control instances of all controls rendered by the current SAP UI5 page.

The following is the analysis of this requirement and the specific implementation steps.

  1. What function does the print statement need to be written in the controller?
  1. How to get all SAP UI5 control instances on the page?
  1. The function that SAP UI5 obtains the control instance according to the control id is: sap.ui.getCore.byId , the input parameter of this function is the control id, the type is a string, and the control instance is returned.

After the idea is clear, the next step is the specific implementation, refer to this article .


注销
1k 声望1.6k 粉丝

invalid