Web Dynpro APIs 总结
IF_WD_VIEW_CONTROLLER (for all view controllers),
IF_WD_COMPONENT (for all component controllers)
IF_WD_CONTROLLER (for all interface controllers or custom controllers)
视图 controllers
method MY_VIEW_CONTROLLER_METHOD .
data: L_RUNTIMEAPI type ref to IF_WD_VIEW_CONTROLLER.
L_RUNTIMEAPI = WD_THIS->WD_GET_API( ) .
endmethod.
controller
method MY_CONTROLLER_METHOD .
data: L_COMP_INTF type ref to IG_COMPONENTCONTROLLER,
L_RUNTIMEAPI type ref to IF_WD_COMPONENT.
L_COMP_INTF = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
L_RUNTIMEAPI = L_COMP_INTF->WD_GET_API( ) .
endmethod.
view controller
method MY_VIEW_CONTROLLER_METHOD .
data: L_RUNTIMEAPI type ref to IF_WD_COMPONENT.
L_RUNTIMEAPI = WD_COMP_CONTROLLER->WD_GET_API( ) .
endmethod.
· The API IF_WD_VIEW can exclusively be accessed using the attribute VIEW of the method WDDOMODIFYVIEW of the local view controller interface.
· The APIs IF_WD_CONTEXT_NODE and IF_WD_CONTEXT_NODE_INFO can be accessed using the attribute WD_CONTEXT of the type IF_WD_CONTEXT.