Web Dynpro APIs

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.

 

 

發佈了27 篇原創文章 · 獲贊 4 · 訪問量 11萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章