cancel
Showing results for 
Search instead for 
Did you mean: 

How to access View Context thr' View Controller; and not thr' View....

Former Member
0 Kudos

Hi

As we know that we can access Component Context Attribute by Component Controller in view as:

wdThis.wdGet<Component_Name>Controller().wdGetContext().currentContextElement().

get<Component_Context_Attribute>

whereas wdThis.wdGet<Component_Name>Controller() is the Component Controller.

So, in the same way, I was just wondering do we have any way to access the View Context through View Controller.

Generally for view context, we use wdContext which is (= wdThis.wdGetContext() ) means accessing view context thr' view.

i want to access View context thr' View Controller which is wdThis.wdGetAPI().

Thanks....

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member185086
Active Contributor
0 Kudos

Hi

Get the detailed description and understanding of these webdynpro jorgens from [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ba2c45-0518-2a10-73be-9b785e10aef1]

Best Regards

Satish Kumar

Former Member
0 Kudos

In the generated controller class, there exist a shortcut wdContext to access the context. You just use


wdContext.currentContextElement.getAttributeXYZ()

etc.

Armin

Former Member
0 Kudos

Hi Armin

I know that we can access View Context through wdContext (which is wdThis.wdGetContext() ).

But just trying to find out: Is there any way to access View Context thr' View Controller which is wdThis.wdGetAPI().

Thanks...