cancel
Showing results for 
Search instead for 
Did you mean: 

Best Practices about context

Former Member
0 Kudos

Hi SAP developers,

I need somebody with a lot of WebDynpro experience. My question is the following: Under what conditions is it advisable to map context nodes/conetx attributes and when should I use the construct wdThis.wdGetTestComp().wdGetContext()....?

Greets Ruben

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member197348
Active Contributor
0 Kudos

Hi Ruben,

You can do everything with mapped context nodes/context attributes that you can do with wdThis.wdGetTestComp().wdGetContext()....

( i.e. accessing the context programmatically )

But you can not do everything with wdThis.wdGetTestComp().wdGetContext().... that you can do with

mapped context nodes/context attributes (e.g context binding to UI)

Other than I have not encountered any specific usage difference.

Regards,

Siva

Former Member
0 Kudos

hi,

suppose if u want have 2 views,

and u want t o display(or use) the content of first view in the second view

then u have to map the context of the first view to the context of the component controller

then u have to map the context of the second view also to the component controller..

what exactlu happening here is,

u are placing the attributes of the view in a global context(i,e component controller context)

as u cannot access the values of one view in another directly ..

coming to the code u have written,

u write this code when u want to get or set the atribute values in the component controller's context.

Regards,

Satya.

former_member192434
Active Contributor
0 Kudos

Hi Ruben,

Just go through this link it has details explanations

http://help.sap.com/erp2005_ehp_03/helpdata/EN/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm

Thanks