cancel
Showing results for 
Search instead for 
Did you mean: 

Pass value from one page to another

Former Member
0 Kudos

Hello All,

I have to go to next page on the click of button and also pass the value of the first view to the next view.

One more query as dynpro in MVc based. How we use the model class in the dynpro.

Regards

Harpreet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harpreet.

For this you have to add the node to the context controller's context.

Then map this node to your first view per drag and drop in the view controller.

In the next view do this mapping too. Then you can access the values set in the first view in the second view.

If you have the node in the component controller you can map this node to any view in the component and share it between the views.

Cheers,

Sascha

Answers (3)

Answers (3)

Madhu2004
Active Contributor
0 Kudos

Hai Harpreet,

Just create the node with that attribute in component controller and map the node in the two views which u are using.

first in the first view bind the value to the node and in the second view just read the node and u can get the values from the first page.

As of now model class is not supported in Webdynpro for ABAP>

CHeers,

Madhu

mohammed_anzys
Contributor
0 Kudos

Hi

The second method is , pass the values throught plugs.which means , define the parameters in the inbound and outbound plugs and create a navigation link between them

Thanks

Anzy

Former Member
0 Kudos

Define all the data that you need to share across views in the component controller. You should create context nodes and attributes just as you do in the view. Then define a mapping between the component controller and the view's context. In the view's context, in the right side, you can see the component controller's context nodes. drag and drop the nodes you want to use.

This node can be now accessed as the view's node itself. When you want to pass data, do a set attribute from your first view, fire the outbound plug, do a get attribute in the next view. The same context node should be mapped in both views.

Hope this helps.

Regards

Nithya