Skip to Content
author's profile photo Former Member
Former Member

Best Practices about context

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 10:28 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 10:29 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2008 at 10:30 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.