没有合适的资源?快使用搜索试试~ 我知道了~
SAP HANA XS js 文档
需积分: 9 19 下载量 71 浏览量
2017-10-26
14:23:10
上传
评论 1
收藏 5.19MB PDF 举报
温馨提示
试读
134页
SAP_HANA_XS_JavaScript_Reference_en SAP HANA XS js 文档
资源详情
资源评论
资源推荐
PUBLIC
SAP HANA Platform 2.0 SPS 01
Document Version: 1.0 – 2017-04-12
SAP HANA XS JavaScript Reference
Content
1 SAP HANA XS JavaScript Reference.............................................4
2 Getting Started with XS JavaScript..............................................5
2.1 Developing Native SAP HANA Applications...........................................5
2.2 Roles and Permissions for XS Development.......................................... 7
2.3 Developer Information Map......................................................9
SAP HANA Developer Information by Guide.......................................12
SAP HANA Developer Information by Task........................................16
SAP HANA Developer Information by Scenario.....................................18
3 Writing Server-Side JavaScript Code............................................26
3.1 Data Access with JavaScript in SAP HANA XS........................................26
3.2 Using Server-Side JavaScript in SAP HANA XS.......................................27
Tutorial: Write Server-Side JavaScript Application Code..............................27
3.3 Using Server-Side JavaScript Libraries.............................................42
Import Server-Side JavaScript Libraries......................................... 43
Write Server-Side JavaScript Libraries.......................................... 44
3.4 Using the Server-Side JavaScript APIs.............................................45
Tutorial: Use the XSJS Outbound API........................................... 57
Tutorial: Call an XS Procedure with Table-Value Arguments............................61
Tutorial: Query a CDS Entity using XS Data Services.................................66
Tutorial: Update a CDS Entity Using XS Data Services................................70
3.5 Creating Custom XS SQL Connections.............................................73
Create an XS SQL Connection Configuration......................................75
3.6 Setting the Connection Language in SAP HANA XS.................................... 81
3.7 Scheduling XS Jobs.......................................................... 83
Tutorial: Schedule an XS Job................................................. 84
Add or Delete a Job Schedule during Runtime..................................... 93
3.8 Tracing Server-Side JavaScript..................................................95
Trace Server-Side JavaScript Applications........................................95
View XS JavaScript Application Trace Files....................................... 97
3.9 Debugging Server-Side JavaScript................................................97
Create a Debug Configuration................................................101
Execute XS JavaScript Debugging.............................................102
Troubleshoot Server-Side JavaScript Debugging.................................. 107
3.10 Testing XS JavaScript Applications...............................................109
Automated Tests with XSUnit in SAP HANA......................................110
2
P U B L I C
SAP HANA XS JavaScript Reference
Content
1 SAP HANA XS JavaScript Reference
This guide explains how to use server-side JavaScript (XSJS) to build applications that run in SAP HANA
Extended Application Services (XS). The XSJS applications define the business logic required to serve client
requests for data via HTTP.
The SAP HANA XS JavaScript Reference explains how to use SAP HANA server-side JavaScript to build the
application logic for your XSJS applications running either in XS classic or the compatibility layer of the XS
advanced JavaScript run-time environment. The information in this guide is organized as follows:
● Getting started
An overview of the architecture and components in an XSJS application; some information about required
roles and permissions; and a map to help you find additional information resources.
● Writing server-side JavaScript code
Step-by-step information that shows in detail how to develop the various elements that make up an XS
JavaScript application, including the libraries and application programming interfaces (APIs). The
information provided uses tasks and tutorials to explain how to develop the SAP HANA development
objects. Where appropriate, you can also find background information that explains the context of the
task, and reference information that provides the detail you need to adapt the task-based examples to suit
the requirements of your application environment.
Note
You can find details of the individual XS JavaScript APIs and additional information about recommended
usage in the SAP HANA XS JavaScript API Reference on the SAP Help Portal.
4
P U B L I C
SAP HANA XS JavaScript Reference
SAP HANA XS JavaScript Reference
2 Getting Started with XS JavaScript
SAP HANA XS Javascript (XSJS) is a language that can be used by application developers to create native SAP
HANA applications that expose data to UI clients on request.
The application developer defines the business logic that is used to expose data in response to client requests
via HTTP. This guide takes you through the tasks required to use the XS JavaScript syntax to define the
services that comprise your business logic, for example:
● Create applications using XS JavaScript
● Create reusable XS JavaScript libraries
● Make use of the XS JavaScript application programming interface (API)
● Debug XS JavaScript
● Trace XS JavaScript applications
This SAP HANA XS JavaScript Reference also provides code examples that illustrate how to use the XS
JavaScript classes and methods.
Building the data model is the first step in the overall process of developing applications that provide access to
the SAP HANA database. When you have created the underlying data persistence model, application
developers can build the application services that expose selected elements of the data model to client
application by means of so-called “data end-points”. The client applications bind UI controls such as buttons
or charts and graphs to the application services which in turn retrieve and display the requested data.
Prerequisites
Before you can start using XS JavaScript to define the applications that represent your business logic, you
need to ensure that the following prerequisites are met:
● You must have access to an SAP HANA system.
● You must have already created a development workspace and a project.
● You must have shared a project for the XS JavaScript artifacts so that the newly created files can be
committed to (and synchronized with) the repository.
2.1 Developing Native SAP HANA Applications
In SAP HANA, native applications use the technology and services provided by the integrated SAP HANA XS
platform.
The term “native application” refers to a scenario where applications are developed in the design-time
environment provided by SAP HANA extended application services (SAP HANA XS) and use the integrated
SAP HANA XS platform illustrated in the following graphic.
SAP HANA XS JavaScript Reference
Getting Started with XS JavaScript
P U B L I C 5
剩余133页未读,继续阅读
qq767704162
- 粉丝: 0
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0