Skip to Content
0
Former Member
Sep 14, 2007 at 02:41 AM

How to bind the attribute in the context to a dynamic created element?

34 Views

Hi, experts,

There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")

I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded.

How can I bind the attribute of the context in the following code?

METHOD modifyview .

*****************************

*

*importing para type string.

*importing m_view type ref to if_wd_view.

*

******************************

data wd_inputfield type ref to cl_wd_input_field.

  • create one element automatically in the view.

wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(

view = m_view

id = para

BIND_VALUE = ???

).

ENDMETHOD.

I don't know how to replace the "???" in the method modifyview? Do you give me some hint for it?

You can reply back to me via e-mail if you think we should discuss this internally at tao.wang@besuretech.com or wwangt_92@hotmail.com.

Thanks.

Best regards,

tao