Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro qustion

Former Member
0 Kudos

hi

i have a general qustion,in Tutorials 3 i have to call the metod <b>wd_context</b>

my qustion 1.how i have to now that this is the metod i have to call

CALL METHOD wd_context->set_attribute

EXPORTING

  • index = use_lead_selection

value = text

name = 'TEXT'

2. how i have to now which class is wd_context class becose i wont to call it in pattren ,i new in objects.

thankes

.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

To your first question, this will come with experience, in this case you want to update the contect attribute TEXT with a new value, so you would use the method SET_ATTRIBUTE to do so. the WD_CONTEXT is the built in reference to the context object, so you can directly call its methods.

http://help.sap.com/saphelp_nw70/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

To your first question, this will come with experience, in this case you want to update the contect attribute TEXT with a new value, so you would use the method SET_ATTRIBUTE to do so. the WD_CONTEXT is the built in reference to the context object, so you can directly call its methods.

http://help.sap.com/saphelp_nw70/helpdata/en/64/be5b4150b38147e10000000a1550b0/frameset.htm

Regards,

Rich Heilman

0 Kudos

Also, to answer your second question, you can find out what WD_CONTEXT references by simply double clicking on it. It is a instance of an interface IF_WD_CONTEXT_NODE.

Regards,

Rich Heilman