Skip to Content
avatar image
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    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 comment
    10|10000 characters needed characters exceeded