DATA Transfer Between the VIEWS Using Data Modeler (Context Mapping)
Steps for Data Transfer between two Views:
_______________________________________________________________
Creating Webdynpro Project and Component, view and window.
-open NWDS in Webdynpro perspective
-select File-->New--->Webdynpro Project Ma
-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
-Finish
Editing View Layout, creating Attributes and simple form in View.
-Goto View1Context-->Create two Attributes( ID, NAME )
-Goto View1Layout-->Select Form Context ,Then Drag & Drop entire Context
-Save it.
-Now Right Click on Window & open "Navigation Modeler"
-Drag & drop Embed New View ( View2 )
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
-Finish.
For Detailed explanation on this go to my previous Video
"Navigation Between Views In WD JAVA Application" search for it in Youtube.
-Goto View2Context-->Create two Attributes( ID2, NAME2 )
-Goto View2Layout-->Select Form Context ,Then Drag & Drop entire Context
-Save it.
-Goto "ComponentControllerContext"-->Create two Attributes( IDc, NAMEc )
-Save it.
For Data Transfer : we need to Perform "CONTEXT MAPPING":
-Right Click on Component--->open DATA Modeller.
-Create a DataLink between View1 and Component Controller and perform "CONTEXT MAPPING"
-Create a DataLink between View2 and Component Controller and perform "CONTEXT MAPPING"
To Test the Component:
-Right Click on Applications:
-Create an Application
-provide Application Name:
-Finish:
-Right Click on Application & Deploy to J2EE Server.
This is how we transfer data between 2 views using data modeler and context mapping.
also
To access attributes of Component Controller:
wdThis.wdGet<Component_Controller>().wdGetContext().currentContextElement().get<Attribute>().
wdThis.wdGet<Component_Controller>().wdGetContext().currentContextElement().set<Attribute>().
Thanks for watching
TC.
Steps for Data Transfer between two Views:
_______________________________________________________________
Creating Webdynpro Project and Component, view and window.
-open NWDS in Webdynpro perspective
-select File-->New--->Webdynpro Project Ma
-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
-Finish
Editing View Layout, creating Attributes and simple form in View.
-Goto View1Context-->Create two Attributes( ID, NAME )
-Goto View1Layout-->Select Form Context ,Then Drag & Drop entire Context
-Save it.
-Now Right Click on Window & open "Navigation Modeler"
-Drag & drop Embed New View ( View2 )
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
-Finish.
For Detailed explanation on this go to my previous Video
"Navigation Between Views In WD JAVA Application" search for it in Youtube.
-Goto View2Context-->Create two Attributes( ID2, NAME2 )
-Goto View2Layout-->Select Form Context ,Then Drag & Drop entire Context
-Save it.
-Goto "ComponentControllerContext"-->Create two Attributes( IDc, NAMEc )
-Save it.
For Data Transfer : we need to Perform "CONTEXT MAPPING":
-Right Click on Component--->open DATA Modeller.
-Create a DataLink between View1 and Component Controller and perform "CONTEXT MAPPING"
-Create a DataLink between View2 and Component Controller and perform "CONTEXT MAPPING"
To Test the Component:
-Right Click on Applications:
-Create an Application
-provide Application Name:
-Finish:
-Right Click on Application & Deploy to J2EE Server.
This is how we transfer data between 2 views using data modeler and context mapping.
also
To access attributes of Component Controller:
wdThis.wdGet<Component_Controller>().wdGetContext().currentContextElement().get<Attribute>().
wdThis.wdGet<Component_Controller>().wdGetContext().currentContextElement().set<Attribute>().
Thanks for watching
TC.
No comments:
Post a Comment