当前位置:网站首页>How to create the simplest SAP kyma function
How to create the simplest SAP kyma function
2022-06-11 21:22:00 【Hua Weiyun】
Sign in SAP Kyma Console , Create a new function:

Choice of implementation mode nodejs:
Automatically generate a service. Click on service In the lower right corner of the panel Expose service Button , Create a new API rule, take function Exposed to the internet:

Choose function, Click on expose function, establish API rules:

maintain api rule Of name and hostname Field :

function There is only one line in the implementation body : return Hello World

Click on API rule, You can access the function 了 :


The website links :https://sapui5.hana.ondemand.com/1.36.6/docs/guide/e5200ee755f344c8aef8efcbab3308fb.html
An example :
"routing": { "config": { "routerClass": "sap.m.routing.Router", "viewType": "XML", "viewPath": "kyma.sample.app.view", "controlId": "app", "controlAggregation": "pages", "async": true }, "routes": [ { "pattern": "", "name": "orders", "target": ["orders"] } ], "targets": { "orders": { "viewName": "Orders", "viewId": "orders", "viewLevel": 1, "title": "{i18n>title}" } }
stay manifest.json Of documents sap.ui5 Area , Added three sub areas :
(1) config
(2) routes
(3) target
config
This section contains the global router configuration and default values that apply for all routes and targets.
Contains global router information and default values for all routing paths and targets .
We define the router class that we want to use and where our views are located in the app.
The router implementation class and the specific location of our view in the application are defined .
To load and display views automatically, we also specify which control is used to display the pages and what aggregation should be filled when a new page is displayed.
To make the view visible , You need to define which control is used to display the page , And through what aggregation, Fill in the control .


routes
Each route defines a name, a pattern, and one or more targets to navigate to when the route has been hit.
Each route information defines a name , A format , And a routing destination view , When the route is triggered , The destination view will show .
The pattern is basically the URL part that matches to the route, we define two routes for our app.
So-called pattern, That is, to be matched URL fragment .
Example :

边栏推荐
- 一个Golang的私有库设置问题
- Cs144 lab0 lab1 record
- [Part 13] source code analysis and application details of completabilefuture class [key]
- Which Bluetooth headset is better within 500? Inventory of gifts for girls' Day
- 实现 TabLayout 下标与文字等长,选中字体大小改变
- How to Load Data from CSV (Data Preparation Part)
- 应用业务层修改
- How to manually send events exposed by SAP commerce cloud mock application using SAP kyma console
- Lr-link Lianrui makes its debut at the digital Expo with new products - helping the construction of new infrastructure data center
- 【 C Advanced language】 Integer Storage in Memory
猜你喜欢

Tensorflow 2. X Getting Started tutorial

Part I physical layer

Explanation of each column output by explain statement

gateway先启动其他微服务,在启动网关,网关启动不了,且无异常日志;先启动网关,所有服务能正常启动

go语言的goto语句

The scale of the global machine vision market continues to rise. Poe image acquisition card provides a high-speed transmission channel for industrial cameras

LabVIEW controls Arduino to realize ultrasonic ranging (advanced chapter-5)
![BZOJ3189 : [Coci2011] Slika](/img/46/c3aa54b7b3e7dfba75a7413dfd5b68.png)
BZOJ3189 : [Coci2011] Slika
![Analysis on the development history and market development status of China's system integration industry in 2020 [figure]](/img/3c/b53c2a3f59ff6784f128cb98a5a7a2.jpg)
Analysis on the development history and market development status of China's system integration industry in 2020 [figure]

Release of version 5.6 of rainbow, add multiple installation methods, and optimize the topology operation experience
随机推荐
Live broadcast with practice | 30 minutes to build WordPress website with Alibaba cloud container service and container network file system
Use float to create a page header, footer, left content, and main content.
Database daily question --- day 9: salesperson
RANSAC提取平面(MATLAB内置函数)
Bug -- coredump usage
RANSAC extract cylinder (matlab built-in function)
二分图King
Add personal statement for go file in file template in Golan
Codeforces Round #739 (Div. 3)解题报告
ORA-04098: trigger ‘xxx. xxx‘ is invalid and failed re-validation
JVM之对象创建过程
RANSAC extraction plane (matlab built-in function)
JVM之堆区
2022年6月9日 16:29:41 日记
js对返回的数据的各种数据类型进行非空判断。
bzoj3188 Upit
Cuckoo Hash
A collection of commonly used open source data sets for face recognition
[Part 16] copyonwritearraylist source code analysis and application details [key]
Serval and Rooted Tree(CF1153D)-DP