SlideShare a Scribd company logo
1 of 4
Download to read offline
1
Data Binding, Context Mapping & Navigation
Exercise
Data Binding, Context Mapping & Navigation
Exercise
Chapter: Context at Design Time
Theme: Binding UI elements to the view context,
mapping view context nodes to the
component controller context and create
navigation between two views
At the end of this Exercise, you will be able to:
• Create a node and child attributes in a context
• Map a view context node to component controller’s context
• Bind UI elements to the view context
• Create navigation between two views
1 Development Objectives
This exercise has the following objectives:
- Make the data stored in the context of the component controller available to view
controllers.
- Create some UI elements on the view layout that can display the data in the
context of the view controller.
- Create navigation between two views.
The context of the component controller will act as the data source. Then using
context mapping, the data will be shared with two view controllers. Once the data is
available to the context of the view controller, UI elements can be added to the view
layout. These UI elements will then be bound to the context of the view controller. At
last the navigation from one view to the other one will be enabled.
2
Data Binding, Context Mapping & Navigation
Exercise
2 Result
In this exercise, you will create a new
component with two views. You will add
two input fields and a push button on the
first view.
On the second view you will create only
display fields for displaying your input
from the first view.
You also will have to create the
navigation between these two views.
Template Solution:
Web Dynpro Component: WD_03S_SIMPLE_APPLICATION
Application: WD_03S_SIMPLE_APPLICATION
Group number: ## stands for the two-digit group number
3 Developing
3-1 Create Component
Create a new Web Dynpro Component called
ZWD_##_SIMPLE_APPLICATION. Change the proposed window name
to MAIN.
3-2 Build Context in the component controller
Locate the Component Controller node in the project structure that is
located immediately under the component. Double click on Component
Controller to open the Custom Controller editor.
- Add a new node to the Custom Controller Context, having the
name FlightInfo.
3
Data Binding, Context Mapping & Navigation
Exercise
- On the popup enter sflight in the field Dictionary structure and press
Add Attribute from structure.
- Choose fields carrid and connid and press Continue.
- Change property Input Help Mode of the attributes carrid and connid
to automatisch. This setting will provide both input fields on the
Input_View (will be created next) with a F4 help for value selection.
3-3 Create Input_View
3-3-1 Create a view called Input_View and navigate to the context tab. Use drag
& drop to copy and map the node FlightInfo from the context of the
Component Controller to the context of the View Controller. The two
attributes carrid and connid are automatically created.
3-3-2 Navigate to the view’s Layout tab. Change the property Layout of the
ROOTUIELEMENTCONTAINER to MatrixLayout.
Create a group with the name Group_1. Change the Layout property to
MatrixLayout and the LayoutData property to MatrixHeadData. Change
the property Text of the element Caption_1 to Please fill in values!
Right mouse click on Group_1 and choose Container-Formular erzeugen
(Create container form) from the context menu. Choose context node
FlightInfo and press Confirm entry.
The two Labels and Inputfields for the context attributes carrid and
connid have been created.
Change the property LayoutData of Connid_Label_1 to MatrixHeadData.
3-4 Create Output_View
3-4-1 Make a copy of view Input_View and name it Output_View. Adjust the
Description on the properties tab to Output View.
3-4-2 Change the text of Caption_1 to Your input was….
3-4-3 Enable property readOnly for both input fields.
3-5 Create Navigation from Input_View to Output_View
3-5-1 Navigate to the tab Inbound Plugs on the Output_View and create a
Inbound Plug named to_output_view.
3-5-2 Navigate to the tab Outbound Plugs on the Intput_View and create a
Outbound Plug named from_input_view.
3-5-3 Go to the Main window (on the window tab) and embed the two views
Input_View and Output_View.
Set Input_View as default.
Expand the node of embedded view Input_View, right mouse click on the
outbound plug and choose Create Navigation Link from the context menu.
Choose Destination View OUTPUT_VIEW via F4 help and press
Continue.
4
Data Binding, Context Mapping & Navigation
Exercise
As a result a new node with a chain symbol appears under the outbound
plug.
3-5-4 Create a button element named Go_Button under Group_1 of the view
Input_View. Insert Go! for property Text. Create action Go for the button.
Enter a description and choose outbound plug From_Input_View. Press
Continue.
3-6 Create Web Dynpro Application
Right mouse click on the component node and select Create -> Web
Dynpro Anwendung (Web Dynpro Application) from the context menu.
Create the application having the following attributes:
Name: (accept default)
Description: Simple Web Dynpro Application
Accept all default settings and press Save and run your application.

More Related Content

What's hot

Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMahmoudOHassouna
 
Introduction To Angular 4 - J2I
Introduction To Angular 4 - J2IIntroduction To Angular 4 - J2I
Introduction To Angular 4 - J2INader Debbabi
 
Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...Katy Slemon
 
Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Aviary
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web MahmoudOHassouna
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceOleksii Prohonnyi
 
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016Codemotion
 
Automated Testing on iOS
Automated Testing on iOSAutomated Testing on iOS
Automated Testing on iOSMake School
 
Introduction to angular js for .net developers
Introduction to angular js  for .net developersIntroduction to angular js  for .net developers
Introduction to angular js for .net developersMohd Manzoor Ahmed
 
Angular 4 and TypeScript
Angular 4 and TypeScriptAngular 4 and TypeScript
Angular 4 and TypeScriptAhmed El-Kady
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to ReactRob Quick
 
Angular 2 - The Next Framework
Angular 2 - The Next FrameworkAngular 2 - The Next Framework
Angular 2 - The Next FrameworkCommit University
 
Introduction to Angular 2
Introduction to Angular 2Introduction to Angular 2
Introduction to Angular 2Naveen Pete
 
Training Session 2 - Day 2
Training Session 2 - Day 2Training Session 2 - Day 2
Training Session 2 - Day 2Vivek Bhusal
 

What's hot (19)

Murach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVCMurach: An introduction to web programming with ASP.NET Core MVC
Murach: An introduction to web programming with ASP.NET Core MVC
 
Introduction To Angular 4 - J2I
Introduction To Angular 4 - J2IIntroduction To Angular 4 - J2I
Introduction To Angular 4 - J2I
 
Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...Redux and context api with react native app introduction, use cases, implemen...
Redux and context api with react native app introduction, use cases, implemen...
 
Angular 9
Angular 9 Angular 9
Angular 9
 
Refreshing Your App in iOS 7
Refreshing Your App in iOS 7Refreshing Your App in iOS 7
Refreshing Your App in iOS 7
 
Ng talk
Ng talkNg talk
Ng talk
 
Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web Murach : How to develop a single-page MVC web
Murach : How to develop a single-page MVC web
 
Dive into Angular, part 5: Experience
Dive into Angular, part 5: ExperienceDive into Angular, part 5: Experience
Dive into Angular, part 5: Experience
 
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
Understanding Angular 2 - Shmuela Jacobs - Codemotion Milan 2016
 
Angularjs Live Project
Angularjs Live ProjectAngularjs Live Project
Angularjs Live Project
 
Automated Testing on iOS
Automated Testing on iOSAutomated Testing on iOS
Automated Testing on iOS
 
iOS UI best practices
iOS UI best practicesiOS UI best practices
iOS UI best practices
 
Introduction to angular js for .net developers
Introduction to angular js  for .net developersIntroduction to angular js  for .net developers
Introduction to angular js for .net developers
 
Angular 4 and TypeScript
Angular 4 and TypeScriptAngular 4 and TypeScript
Angular 4 and TypeScript
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
Angular 4 - quick view
Angular 4 - quick viewAngular 4 - quick view
Angular 4 - quick view
 
Angular 2 - The Next Framework
Angular 2 - The Next FrameworkAngular 2 - The Next Framework
Angular 2 - The Next Framework
 
Introduction to Angular 2
Introduction to Angular 2Introduction to Angular 2
Introduction to Angular 2
 
Training Session 2 - Day 2
Training Session 2 - Day 2Training Session 2 - Day 2
Training Session 2 - Day 2
 

Viewers also liked

Using folder options for page protection
Using folder options for page protectionUsing folder options for page protection
Using folder options for page protectionKranthi Kumar
 
Creating simple comp
Creating simple compCreating simple comp
Creating simple compKranthi Kumar
 
Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...Kranthi Kumar
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_devKranthi Kumar
 
Type casting in ooabap
Type casting in ooabapType casting in ooabap
Type casting in ooabapbiswajit2015
 
5078977 abap-tips
5078977 abap-tips5078977 abap-tips
5078977 abap-tipsjmts1000
 
E mail eft remittance using bte
E mail eft remittance using bteE mail eft remittance using bte
E mail eft remittance using bteKranthi Kumar
 
Webdynpro by vijayender_reddy
Webdynpro by vijayender_reddyWebdynpro by vijayender_reddy
Webdynpro by vijayender_reddyKranthi Kumar
 
Adding custom fields to the fi report fbl5 n using bt es
Adding custom fields to the fi report fbl5 n using bt esAdding custom fields to the fi report fbl5 n using bt es
Adding custom fields to the fi report fbl5 n using bt esKranthi Kumar
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programmingKranthi Kumar
 
IGROWSOFT abap material
IGROWSOFT abap materialIGROWSOFT abap material
IGROWSOFT abap materialKranthi Kumar
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction eventsKranthi Kumar
 
Sap script made easy
Sap script made easySap script made easy
Sap script made easyKranthi Kumar
 

Viewers also liked (20)

Context at design
Context at designContext at design
Context at design
 
Using folder options for page protection
Using folder options for page protectionUsing folder options for page protection
Using folder options for page protection
 
Alv for web
Alv for webAlv for web
Alv for web
 
Data binding
Data bindingData binding
Data binding
 
Creating simple comp
Creating simple compCreating simple comp
Creating simple comp
 
Dynamic binding
Dynamic bindingDynamic binding
Dynamic binding
 
Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...
 
Version it satya_dev
Version it satya_devVersion it satya_dev
Version it satya_dev
 
Abap faq
Abap faqAbap faq
Abap faq
 
Type casting in ooabap
Type casting in ooabapType casting in ooabap
Type casting in ooabap
 
5078977 abap-tips
5078977 abap-tips5078977 abap-tips
5078977 abap-tips
 
E mail eft remittance using bte
E mail eft remittance using bteE mail eft remittance using bte
E mail eft remittance using bte
 
Webdynpro by vijayender_reddy
Webdynpro by vijayender_reddyWebdynpro by vijayender_reddy
Webdynpro by vijayender_reddy
 
Adding custom fields to the fi report fbl5 n using bt es
Adding custom fields to the fi report fbl5 n using bt esAdding custom fields to the fi report fbl5 n using bt es
Adding custom fields to the fi report fbl5 n using bt es
 
Controllers and context programming
Controllers and context programmingControllers and context programming
Controllers and context programming
 
Crm technical
Crm technicalCrm technical
Crm technical
 
IGROWSOFT abap material
IGROWSOFT abap materialIGROWSOFT abap material
IGROWSOFT abap material
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
Scenario on business transaction events
Scenario on business transaction eventsScenario on business transaction events
Scenario on business transaction events
 
Sap script made easy
Sap script made easySap script made easy
Sap script made easy
 

Similar to Binding,context mapping,navigation exercise

iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsAsim Rais Siddiqui
 
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-viewFaina Fridman
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLAkhil Mittal
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfDavid Harrison
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfDavid Harrison
 
Architecture Specification - Visual Modeling Tool
Architecture Specification - Visual Modeling ToolArchitecture Specification - Visual Modeling Tool
Architecture Specification - Visual Modeling ToolAdriaan Venter
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application TutorialIshara Amarasekera
 
Creating a dot netnuke
Creating a dot netnukeCreating a dot netnuke
Creating a dot netnukeNguyễn Anh
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Cathie101
 
I doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docI doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docVERUS BRASIL
 
Lecture 2 Styling and Layout in React Native.pptx
Lecture 2 Styling and Layout in React Native.pptxLecture 2 Styling and Layout in React Native.pptx
Lecture 2 Styling and Layout in React Native.pptxGevitaChinnaiah
 
Different types of sticker apps
Different types of sticker appsDifferent types of sticker apps
Different types of sticker appsJelena Krmar
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAlfa Gama Omega
 
SAP CRM OneOrder Advanced Search WebUI Component - part2
SAP CRM OneOrder Advanced Search WebUI Component - part2SAP CRM OneOrder Advanced Search WebUI Component - part2
SAP CRM OneOrder Advanced Search WebUI Component - part2Rahul Koshti
 
WEBDYPRO ABAP WITH DETAILED NOTES
WEBDYPRO ABAP WITH DETAILED NOTESWEBDYPRO ABAP WITH DETAILED NOTES
WEBDYPRO ABAP WITH DETAILED NOTESKranthi Kumar
 

Similar to Binding,context mapping,navigation exercise (20)

iOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI ComponentsiOS Development (Part 3) - Additional GUI Components
iOS Development (Part 3) - Additional GUI Components
 
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
230394452 extending-extending-srm-web-dynpro-view srm-web-dynpro-view
 
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQLLearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdf
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdf
 
Architecture Specification - Visual Modeling Tool
Architecture Specification - Visual Modeling ToolArchitecture Specification - Visual Modeling Tool
Architecture Specification - Visual Modeling Tool
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
 
Creating a dot netnuke
Creating a dot netnukeCreating a dot netnuke
Creating a dot netnuke
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0
 
Unit 2 - Data Binding.pptx
Unit 2 - Data Binding.pptxUnit 2 - Data Binding.pptx
Unit 2 - Data Binding.pptx
 
I doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.docI doc packaging and mapping techniques.doc
I doc packaging and mapping techniques.doc
 
Lecture 2 Styling and Layout in React Native.pptx
Lecture 2 Styling and Layout in React Native.pptxLecture 2 Styling and Layout in React Native.pptx
Lecture 2 Styling and Layout in React Native.pptx
 
Different types of sticker apps
Different types of sticker appsDifferent types of sticker apps
Different types of sticker apps
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
 
Aspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_csAspnet mvc tutorial_01_cs
Aspnet mvc tutorial_01_cs
 
6. safe users-guide
6.  safe users-guide6.  safe users-guide
6. safe users-guide
 
Dot netnuke07 setpbysetp
Dot netnuke07 setpbysetpDot netnuke07 setpbysetp
Dot netnuke07 setpbysetp
 
SAP CRM OneOrder Advanced Search WebUI Component - part2
SAP CRM OneOrder Advanced Search WebUI Component - part2SAP CRM OneOrder Advanced Search WebUI Component - part2
SAP CRM OneOrder Advanced Search WebUI Component - part2
 
Gokul bok
Gokul bokGokul bok
Gokul bok
 
WEBDYPRO ABAP WITH DETAILED NOTES
WEBDYPRO ABAP WITH DETAILED NOTESWEBDYPRO ABAP WITH DETAILED NOTES
WEBDYPRO ABAP WITH DETAILED NOTES
 

More from Kranthi Kumar

Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsKranthi Kumar
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script formsKranthi Kumar
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configurationKranthi Kumar
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output programKranthi Kumar
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script formsKranthi Kumar
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONKranthi Kumar
 
Call transaction method
Call transaction methodCall transaction method
Call transaction methodKranthi Kumar
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)Kranthi Kumar
 

More from Kranthi Kumar (15)

Exercise in alv
Exercise in alvExercise in alv
Exercise in alv
 
Sap abap material
Sap abap materialSap abap material
Sap abap material
 
control techniques
control techniquescontrol techniques
control techniques
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
 
Chapter 06 printing sap script forms
Chapter 06 printing sap script formsChapter 06 printing sap script forms
Chapter 06 printing sap script forms
 
Chapter 05 sap script - configuration
Chapter 05 sap script - configurationChapter 05 sap script - configuration
Chapter 05 sap script - configuration
 
Chapter 04 sap script - output program
Chapter 04 sap script - output programChapter 04 sap script - output program
Chapter 04 sap script - output program
 
Chapter 02 sap script forms
Chapter 02 sap script formsChapter 02 sap script forms
Chapter 02 sap script forms
 
sap script overview
sap script overviewsap script overview
sap script overview
 
Batch input session
Batch input sessionBatch input session
Batch input session
 
BATCH DATA COMMUNICATION
BATCH DATA COMMUNICATIONBATCH DATA COMMUNICATION
BATCH DATA COMMUNICATION
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
 
Business workflow
Business workflowBusiness workflow
Business workflow
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
 

Binding,context mapping,navigation exercise

  • 1. 1 Data Binding, Context Mapping & Navigation Exercise Data Binding, Context Mapping & Navigation Exercise Chapter: Context at Design Time Theme: Binding UI elements to the view context, mapping view context nodes to the component controller context and create navigation between two views At the end of this Exercise, you will be able to: • Create a node and child attributes in a context • Map a view context node to component controller’s context • Bind UI elements to the view context • Create navigation between two views 1 Development Objectives This exercise has the following objectives: - Make the data stored in the context of the component controller available to view controllers. - Create some UI elements on the view layout that can display the data in the context of the view controller. - Create navigation between two views. The context of the component controller will act as the data source. Then using context mapping, the data will be shared with two view controllers. Once the data is available to the context of the view controller, UI elements can be added to the view layout. These UI elements will then be bound to the context of the view controller. At last the navigation from one view to the other one will be enabled.
  • 2. 2 Data Binding, Context Mapping & Navigation Exercise 2 Result In this exercise, you will create a new component with two views. You will add two input fields and a push button on the first view. On the second view you will create only display fields for displaying your input from the first view. You also will have to create the navigation between these two views. Template Solution: Web Dynpro Component: WD_03S_SIMPLE_APPLICATION Application: WD_03S_SIMPLE_APPLICATION Group number: ## stands for the two-digit group number 3 Developing 3-1 Create Component Create a new Web Dynpro Component called ZWD_##_SIMPLE_APPLICATION. Change the proposed window name to MAIN. 3-2 Build Context in the component controller Locate the Component Controller node in the project structure that is located immediately under the component. Double click on Component Controller to open the Custom Controller editor. - Add a new node to the Custom Controller Context, having the name FlightInfo.
  • 3. 3 Data Binding, Context Mapping & Navigation Exercise - On the popup enter sflight in the field Dictionary structure and press Add Attribute from structure. - Choose fields carrid and connid and press Continue. - Change property Input Help Mode of the attributes carrid and connid to automatisch. This setting will provide both input fields on the Input_View (will be created next) with a F4 help for value selection. 3-3 Create Input_View 3-3-1 Create a view called Input_View and navigate to the context tab. Use drag & drop to copy and map the node FlightInfo from the context of the Component Controller to the context of the View Controller. The two attributes carrid and connid are automatically created. 3-3-2 Navigate to the view’s Layout tab. Change the property Layout of the ROOTUIELEMENTCONTAINER to MatrixLayout. Create a group with the name Group_1. Change the Layout property to MatrixLayout and the LayoutData property to MatrixHeadData. Change the property Text of the element Caption_1 to Please fill in values! Right mouse click on Group_1 and choose Container-Formular erzeugen (Create container form) from the context menu. Choose context node FlightInfo and press Confirm entry. The two Labels and Inputfields for the context attributes carrid and connid have been created. Change the property LayoutData of Connid_Label_1 to MatrixHeadData. 3-4 Create Output_View 3-4-1 Make a copy of view Input_View and name it Output_View. Adjust the Description on the properties tab to Output View. 3-4-2 Change the text of Caption_1 to Your input was…. 3-4-3 Enable property readOnly for both input fields. 3-5 Create Navigation from Input_View to Output_View 3-5-1 Navigate to the tab Inbound Plugs on the Output_View and create a Inbound Plug named to_output_view. 3-5-2 Navigate to the tab Outbound Plugs on the Intput_View and create a Outbound Plug named from_input_view. 3-5-3 Go to the Main window (on the window tab) and embed the two views Input_View and Output_View. Set Input_View as default. Expand the node of embedded view Input_View, right mouse click on the outbound plug and choose Create Navigation Link from the context menu. Choose Destination View OUTPUT_VIEW via F4 help and press Continue.
  • 4. 4 Data Binding, Context Mapping & Navigation Exercise As a result a new node with a chain symbol appears under the outbound plug. 3-5-4 Create a button element named Go_Button under Group_1 of the view Input_View. Insert Go! for property Text. Create action Go for the button. Enter a description and choose outbound plug From_Input_View. Press Continue. 3-6 Create Web Dynpro Application Right mouse click on the component node and select Create -> Web Dynpro Anwendung (Web Dynpro Application) from the context menu. Create the application having the following attributes: Name: (accept default) Description: Simple Web Dynpro Application Accept all default settings and press Save and run your application.