Navigation Between the Views in WD Java

Navigation Between the Views in WD Java
(Using Navigation Modeler)

Navigation between two Views:

Creating a Webdynpro Project:

-open NWDS in Webdynpro perspective
-select File-->New--->Webdynpro Project
-provide Webdynpro Project Name
-Goto Webdynpro Components

-Right Click on Webdynpro Components-->create Webdynpro Component
-provide Component Name:
-provide package Name:
-provide Window Name:
-provide View Name: View1

-Goto ViewContext-->Create two Attributes( ID, NAME )
also Edit the default Text View to "Hello this is view 1"
-Goto ViewLayout-->Select Form Context ,Then Drag & Drop entire Context
-Save it.

-Now Right Click on Window & open "Navigation Modeler"

-Drag & drop Embed a View >> Embed a new View ( View2 )
and edit the default text view to your desired message.

-create an OUTBOUND Plug on View1

-Create an INBOUND Plug on View2

-Create a Navigation Link between OutBoundPlug and InBoundPlug.

-Now Goto View1 and Drag & Drop a Button(NEXT) and create an Action by specifying an outBoundplug

To Test the Component:
-Right Click on Applications:

-Create an Application
-provide Application Name:

-Right Click on Application & Deploy New Archive and Run.

To Fire Out Bound Plug: use the Syntax:

wdThis.wdFirePlug<outboundplugName>( );

No comments:

Post a Comment