当前位置:网站首页>Trial version of routing history and routing back and history of SAP ui5

Trial version of routing history and routing back and history of SAP ui5

2022-06-25 05:46:00 JerryWang_ WangZiXi

One suit SAP UI5 A step-by-step learning tutorial for beginners

Tutorial directory

explain

Jerry from 2014 To join in SAP Chengdu Research Institute CRM Fiori After that, the development team began to contact SAP UI5, Once in the SAP Communities and “ Wang Zixi ” There are many articles on WeChat official account SAP UI5 Working principle and source code analysis article .

stay Jerry This article Yes SAP UI5 A novice who knows nothing , Which materials are better to start with ? It was mentioned that ,Jerry Also from the SAP UI5 Rookies come all the way , Knowing that only ABAP Developers with development background , towards SAP UI5 It is not easy to transform the development field , So I designed this job in my spare time SAP UI5 A tutorial for beginners , Develop a complete SAP UI5 Application process , Split into several steps , Make every effort to , Cover all the knowledge points involved in . These knowledge points may not be like mine UI5 The source code analysis series is so in-depth , But try to be easy to understand , Easy SAP UI5 Beginners understand .

The source code for each step of this tutorial , All stored in my Github On , Use folders separately 01,02,03 Wait to identify .

Each step is based on the previous step , Added several new features . Suggest zero basis or to SAP UI5 Beginners who know little , Learn step by step from the first step in order , Download the code locally , With the text explanation of the tutorial , Do it yourself , To deepen understanding .

If you have any questions about each step of the tutorial , Welcome to give me comments in the corresponding step article of the tutorial , Leave a message .

The previous steps in this tutorial , We have achieved from Overview The view jumps to Detail The routing function of the view :

In the picture above Overview In the page , Click on any invoice line item , You can navigate to the details page of the invoice , And in the address bar url It also changes :

Here we find a flaw : Jump to the invoice details page , Can no longer be in SAP UI5 Inside the application, click the control , Go back to the invoice list page .

The only way to rollback is to use the rollback button provided by the browser itself , As shown by the red highlighted arrow in the above figure .

However, the browser's own fallback button has its limitations : Suppose we default the home page from the browser, such as Google, Direct access to the following url Enter the invoice details page :

http://localhost:8080/webapp/...(CustomerName%253D'Alfreds%252520Futterkiste'%252CDiscount%253D0f%252COrderID%253D10835%252CProductID%253D59%252CProductName%253D'Raclette%252520Courdavault'%252CQuantity%253D15%252CSalesperson%253D'Nancy%252520Davolio'%252CShipperName%253D'Federal%252520Shipping'%252CUnitPrice%253D55.0000m)

Click on the browser Back off Button , You cannot go back to the invoice list page , But before Google home page :

In this step, we will use SAP UI5 Route fallback function , To address this limitation .

below Is the specific steps of implementation .

原网站

版权声明
本文为[JerryWang_ WangZiXi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201735545151.html