cancel
Showing results for 
Search instead for 
Did you mean: 

steps for sharing the data among multiple views

Former Member
0 Kudos

hi experts..

I want procedure for transferring data from view to another view

those two views are belonging to the same view.

so send me the step by step procedure or any example regarding this one.

thanks

ramu.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi,

U cannot directly send data from one view to another.So use component controller (which acts as global resource).

1)In component controller add one attribute.

2)In view1,view 2 context add one attribute to each context.

3)open data moduler and do context mapping b/w view1 to component controller and view2 to component controller.

4)Add a form template and do data mapping to view context in view1,,same as view2

5)create OUT bound and IN bound plugs b/w the views for navigation purpose.

6)So data u enter in VIEW1 will be shared by VIEW2.

Regards,

Sunaina Reddy.T

former_member192434
Active Contributor
0 Kudos

Hi Ramu,

First you need to create Inbound Plug and outBound Plug, Outbound plug for 1st view and Inbound Plug for second view.

Then make a link between those plugs. and then fire the plug on button action. by putting this code

wdThis.wdFirePlugOutBound();

create and run your application.

Thanks

Anup

Former Member
0 Kudos

Hi,

You can do this via context mapping also.

1. Create the context attributes for the data you want to pass to the other view. Specify the data type.

2. Create same context attributes in controller context as well as in the other views context. You can copy paste also.

3. Do the Context mapping. For this open the data modeler by right clicking on the controller.

4. Create a data link between the view1 and the controller.Also create one more data link between the view2 and the controller.

5. Now you can very well access the data in the view2 using these context attributes.

regards,

Swati

Former Member
0 Kudos

U need to caryy out the context mapping to

refer the folowing links

http://help.sap.com/saphelp_nw2004s/helpdata/en/48/444941db42f423e10000000a155106/frameset.htm

heres the tut that would explain and giv the solution to ur question

https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-d...

Former Member
0 Kudos

Hi Ramu,

Place the data which has to share in the component controller and do context mapping between the views.

Here there are the steps to communicate between two views

1.First create a Outbound plug for the first view and create an Inbound plug for the second View.

2. Make a link between those two Plugs.

3.Fire the plug on Action button.

4.create application and deploy it.

Thanks

G.Manohar

Edited by: Gouri Manohar Gadhamsetty on Sep 17, 2008 7:34 AM

Edited by: Gouri Manohar Gadhamsetty on Sep 17, 2008 7:43 AM