cancel
Showing results for 
Search instead for 
Did you mean: 

Link to Action - urgent

Former Member
0 Kudos

Hi guys,

Can any one tell me what is significance of link to action?

How we can have like in SDN page on the left hand side there will links when we collapse them the preview can be seen in the right hand side.

How can do this in WDA?

Regards,

Rahul.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi rahul,

you can get more info about link to action from here:

http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm

for displaying something on the right of your screen when you click on the link to action on the left side :.

a)create the views you would like to display on clicking a link to action....

b)place a VIEW_CONTAINER_UI_ELEMENT in the main view where you want to display the desired views on the right.

c)in the window embed in the view of MAIN all the possible views which you may want to display on click of link_to_action

d)in the onaction event of that particular link_to_action fire a plug to the desired view...this will place it in the VIEW_CONTAINER_UI_ELEMENT of the main view.

Answers (1)

Answers (1)

Former Member
0 Kudos

linkToAction, as the name itself suggests, is to perform an action on click of the link. In this case, if you want an SDN page, you will have several linkToAction UI Elements. You will have an onAction event to handle these links.

In the event handler, call wdevent->get_context_element('CONTEXT_ELEMENT') to get the exact link that was clicked. Then based on that, you define your action. That could be firing a plug, calling a method, setting context attributes etc. In your case, it would mostly be embedding a view in the viewcontainer. For each link, you can embed a specific view in a viewcontainer, so that when you click the link, you can see the details on your right.

I would suggest you refer to the component <b>WDR_TEST_EVENTS</b>. This explains how to use a linktoaction UI element, and the application itself closely resembles the SDN format of display. There is a main view in which other views are embedded. Check it out.

Please reward points if it was useful.

Regards,

Nithya