Webdynpro 入门之 Hook Methods 作者:赵伟 zhaowei0315@163.com
DATAlr_grid_dataTYPEREFTOcl_wd_grid_data.
IFfirst_time='X'.
lr_container?=view->get_element('TRANSPARENT1').
lr_label=cl_wd_label=>new_label(id='MAT_LBL'
label_for='MAT'
text='Material').
cl_wd_grid_data=>new_grid_data(element=lr_label).
lr_container->add_child(lr_label).
lr_input_field=cl_wd_input_field=>new_input_field(id='MAT'
bind_value='PARAMETER.MATNR').
"
绑定
Context
节点
lr_grid_data=cl_wd_grid_data=>new_grid_data(element=lr_input_field).
lr_container->add_child(lr_input_field).
lr_link_to_action=cl_wd_link_to_action=>new_link_to_action(id='LTA_LINKTOACTION'
on_action='CLICK'"
关 联 已
存在的
Action
text='NEXT 按钮').
lr_grid_data=cl_wd_grid_data=>new_grid_data(element=lr_link_to_action).
lr_container->add_child(lr_link_to_action).
ENDIF.
ENDMETHOD.
保存,激活,测试