In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to use SAP WebIDE to develop applications and consume OData services." In daily operation, I believe many people have doubts about how to use SAP WebIDE to develop applications and consume OData services. I have consulted various materials and sorted out simple and easy operation methods. I hope to help you answer your doubts about "how to use SAP WebIDE to develop applications and consume OData services." Next, please follow the small series to learn together!
Create a new Destination of type HTTP and add three additional Properties where WebIDEUsage is set to odata_gen:
Among them, the WebIDEUsage attribute value, in addition to odata_gen, there are odata_abap, ui5_execute_abap and other options.
For differences between these values, refer to SAP Help documentation:
> Values for the WebIDEUsage property determine how the SAP Web IDE interprets the destination definition & presents it to you for connection and consumption. The value odata_gen signifies that the destination represents generic OData services (as opposed to OData services that are hosted on an SAP Gateway system, for example) and that the full, specific OData service URL specification is to be provided in the SAP Web IDE New Project wizard, specifically via the Service URL data connection source, as shown in this example scenario:
https://270ffffe74d9f988a0f0066ad59f0/CF/en-US/5c3debce758a470e8342161457fd6f70.html
Create a UI5 application in WebIDE, based on the template SAP Fiori Worklist Application.
Maintenance item details:
Select the OData service on which the Fiori app is based, and from the drop-down menu of Service Url, select Destination:
Here we need to manually complete the url of the OData service:
/V2/Northwind/Northwind.svc
Click the Test button to get the data collection included in the OData service:
Click the Diagram button to see all entities of the OData service and their interrelationships:
After selecting OData service, click Next and select Standalone App as application type:
Object Collection Select Products:
Maintain the remaining attributes in turn, click Finish:
Open the generated project file and use Layout Editor to open Worklist.view.xml:
Find the space that displays the price unit of the product and hardcode the value to USD:
Maintaining useBatch as false in manifest.json allows the Fiori app to consume OData services in a non-batch mode.
Run it directly and see that the app works properly:
And in the Chrome Developer Tools network tab, you can see that the OData service is indeed invoked in a non-batch mode:
At this point, the study of "how to use SAP WebIDE to develop applications and consume OData services" is over. I hope to solve your doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.