没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
SAP NetWeaver Developer's Guide
SAP NetWeaver Developer's GuideSAP NetWeaver Developer's Guide
SAP NetWeaver Developer's Guide
Release: SAP NetWeaver 2004s
Release: SAP NetWeaver 2004sRelease: SAP NetWeaver 2004s
Release: SAP NetWeaver 2004s
Tutorials
TutorialsTutorials
Tutorials
Document Version 1.00 – October 2005
SAP AG
Dietmar-Hopp-Allee 16
69190 Walldorf
Germany
T +49/18 05/34 34 24
F +49/18 05/34 34 20
www.sap.com
© Copyright 2005 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in
any form or for any purpose without the express permission of
SAP AG. The information contained herein may be changed
without prior notice.
Some software products marketed by SAP AG and its distributors
contain proprietary software components of other software
vendors.
Microsoft, Windows, Outlook, and PowerPoint are registered
trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex,
MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries,
pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner,
WebSphere, Netfinity, Tivoli, and Informix are trademarks or
registered trademarks of IBM Corporation in the United States
and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of
the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame,
VideoFrame, and MultiWin are trademarks or registered
trademarks of Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered
trademarks of W3C
®
, World Wide Web Consortium,
Massachusetts Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc.,
used under license for technology invented and implemented by
Netscape.
MaxDB is a trademark of MySQL AB, Sweden.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver,
and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of
SAP AG in Germany and in several other countries all over the
world. All other product and service names mentioned are the
trademarks of their respective companies. Data contained in this
document serves informational purposes only. National product
specifications may vary.
These materials are subject to change without notice. These
materials are provided by SAP AG and its affiliated companies
("SAP Group") for informational purposes
only, without representation or warranty of any kind, and SAP
Group shall not be liable for errors or omissions with respect to
the materials. The only warranties for SAP Group products and
services are those that are set forth in the express warranty
statements accompanying such products and services, if any.
Nothing herein should be construed as constituting an additional
warranty.
Disclaimer
Some components of this product are based on Java™. Any code
change in these components may cause unpredictable and severe
malfunctions and is therefore expressively prohibited, as is any
decompilation of these components.
Any Java™ Source Code delivered with this product is only to be
used by SAP’s Support Services and may not be modified or
altered in any way.
Any software coding and/or code lines / strings ("Code") included
in this documentation are only examples and are not intended to
be used in a productive system environment. The Code is only
intended better explain and visualize the syntax and phrasing
rules of certain coding. SAP does not warrant the correctness and
completeness of the Code given herein, and SAP shall not be
liable for errors or damages caused by the usage of the Code,
except if such damages were caused by SAP intentionally or
grossly negligent.
Typographic Conventions
Type Style Represents
Example Text
Words or characters quoted from
the screen. These include field
names, screen titles,
pushbuttons labels, menu
names, menu paths, and menu
options.
Cross-references to other
documentation.
Example text
Emphasized words or phrases in
body text, graphic titles, and
table titles.
EXAMPLE TEXT
Technical names of system
objects. These include report
names, program names,
transaction codes, table names,
and key concepts of a
programming language when
they are surrounded by body
text, for example, SELECT and
INCLUDE.
Example text
Output on the screen. This
includes file and directory names
and their paths, messages,
names of variables and
parameters, source text, and
names of installation, upgrade
and database tools.
Example text
Exact user entry. These are
words or characters that you
enter in the system exactly as
they appear in the
documentation.
<Example text>
Variable user entry. Angle
brackets indicate that you
replace these words and
characters with appropriate
entries to make entries in the
system.
EXAMPLE TEXT
Keys on the keyboard, for
example, F2 or ENTER.
Icons
Icon Meaning
Caution
Example
Note
Recommendation
Syntax
Contents
1
TUTORIALS....................................................................................................................... 1
2
COMPONENT TUTORIAL................................................................................................. 2
2.1
Using Server-Side Eventing in Web Dynpro Components ....................................... 2
2.1.1
Eventing Example Application........................................................................ 3
2.1.2
Creating a Project Structure........................................................................... 4
2.1.3
Implementing the View Composition.............................................................. 6
2.1.4
Developing the Internal Web Dynpro Component........................................ 10
2.1.5
Developing the Web Dynpro Component..................................................... 18
2.1.6
Using External Context Mapping.................................................................. 25
3
MODEL TUTORIALS....................................................................................................... 31
3.1
Creating a Web Dynpro Application Accessing ABAP Functions........................... 31
3.1.1
Importing a Project Template ....................................................................... 34
3.2
Initial Project Structure............................................................................................ 35
3.2.1
Developing the Example Application – Steps .............................................. 36
3.2.2
Creating a Model .......................................................................................... 37
3.2.3
Creating a Custom Controller Context and Binding it to the Model ............. 40
3.2.4
Mapping Custom Context Elements to View Context Elements .................. 42
3.2.5
Creating Actions and Declaring Methods..................................................... 45
3.2.6
Editing the UI Elements................................................................................ 47
3.2.7
Adding the Implementation of the Backend Connection .............................. 49
3.2.8
Building, Deploying, Configuring, and Running Your Application ................ 52
3.3
Using the Car Rental Web Service with Web Dynpro............................................. 55
3.3.1
Importing a Project Template ....................................................................... 56
3.3.2
Creating a Model .......................................................................................... 57
3.3.3
Creating a Component Context and Binding It to the Model........................ 62
3.3.4
Mapping a View Context onto the Component Controller............................ 67
3.3.5
Defining Data Binding for UI Elements......................................................... 68
3.3.6
Implementing the Event Handler of the View............................................... 70
3.3.7
Building, Deploying, and Running Your Application..................................... 72
3.4
Creating an Email Client Using Web Dynpro and Web Services............................ 74
3.4.1
Creating a Project Structure......................................................................... 75
3.4.2
Creating a Web Service Model..................................................................... 77
3.4.3
Creating the Binding: Component Controller Context and Model................ 81
3.4.4
Mapping View Context Elements to Component Context Elements............ 86
3.4.5
Creating the SendEmail Action .................................................................... 88
3.4.6
Designing a View Layout.............................................................................. 89
3.4.7
Adding the Implementation for the Web Service Connection ...................... 92
3.4.8
Building, Deploying, and Running the Project.............................................. 97
4
VIEW TUTORIALS........................................................................................................... 99
4.1
Dialog Boxes in Web Dynpro Applications.............................................................. 99
4.1.1
Importing a Project Template ..................................................................... 100
4.1.2
Creating an External Window..................................................................... 103
4.1.3
Creating a Dialog Box ................................................................................ 105
4.1.4
Creating a Confirmation Dialog Box........................................................... 117
4.1.5
Executing the Complete Application........................................................... 119
4.2
Modeling View Compositions in Web Dynpro....................................................... 121
4.2.1
Importing a Project Template ..................................................................... 123
4.3
Initial Project Structure.......................................................................................... 124
4.3.1
Developing the Example Application for a View Composition ................... 126
4.3.2
Adding the ViewContainerUIElement......................................................... 126
4.6.1
Embedding a View Set in a ViewContainerUIElement............................... 128
4.6.2
Using a Web Dynpro Component............................................................... 131
4.6.3
Embedding an Inner View Set.................................................................... 132
4.6.4
Embedding Component Interface Views in a View Set.............................. 133
4.9.1
Controlling the Lifecycle of a Component Instance.................................... 137
4.10
Tutorial: Developing with Tables in Web Dynpro.................................................. 143
4.10.1
Importing the Project Template .................................................................. 144
4.10.2
Creating the Component Controller Context.............................................. 146
4.10.3
Mapping the View Context onto the Component Controller Context ......... 148
4.10.4
Enhancing the View Context ...................................................................... 150
4.10.5
Creating the Table...................................................................................... 152
4.10.6
Binding the Table to the Context................................................................ 152
4.10.7
Creating and Binding the Detailed Form.................................................... 154
4.10.8
Deleting Single or Several Rows................................................................ 155
4.10.9
Sorting ........................................................................................................ 156
4.10.10
Calculating the Total per Article.......................................................... 158
4.10.11
Calculating the Total........................................................................... 159
4.10.12
Setting and Changing the Currency.................................................... 161
4.10.13
Building, Deploying, and Running the Table Tutorial ......................... 162
4.11
Integration of a Tree Structure in a Web Dynpro Table........................................ 164
4.11.1
Importing a Project Template ..................................................................... 165
4.11.2
Further Procedure for Developing the Web Dynpro Application................ 167
4.11.3
Executing the Application........................................................................... 181
4.12
Constructing a Recursive and Loadable Web Dynpro Tree ................................. 182
4.12.1
Importing a Project Template ..................................................................... 183
4.13
Initial Project Structure.......................................................................................... 184
4.13.1
Recursive Context Nodes........................................................................... 185
4.13.2
Further Procedure for Creating the Web Dynpro Tree............................... 186
4.13.3
Building, Deploying, and Running the Project............................................ 198
4.14
Value Help Tutorials.............................................................................................. 200
4.14.1
A Simple Input Form................................................................................... 200
4.14.2
Value Help in Web Dynpro Applications .................................................... 225
4.14.3
Advanced Input Help - The Object Value Selector (OVS) ......................... 240
4.15
Developing International Web Dynpro Applications.............................................. 251
4.15.1
Importing a Project Template ..................................................................... 253
4.16
Tabular Project Structure ...................................................................................... 254
4.16.1
Creating Texts for the Original Language .................................................. 255
4.16.2
Translating Text Resources into Other Languages.................................... 266
4.16.3
Define language-specific application properties......................................... 270
剩余434页未读,继续阅读
freefeelfree
- 粉丝: 1
- 资源: 31
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 冯璐阳 42105650—祝福.docx
- 基于多种算法及改进算法实现的移动机器人路径规划matlab源码(含A星算法+PRM+RRT的改进等).zip
- 布里斯托尔纸细分市场、总体规模、先进性、市占率行业分析报告2024年.docx
- Obi绳子插件,好用的很 6.5.4版本
- openjfx-22.0.1-windows-x64-bin-sdk.zip
- 基于ros和stm32f1的小车代码(含串口通信)+项目说明.zip
- 人体姿态估计-基于Tensorflow实现的人体姿态估计算法-附项目源码-优质项目分享.zip
- java实现所有算法大全
- JDBC DAO模式 (复习)
- Proteus仿真AT89C51电子密码锁
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论2