Web Dynpro APIs

本文介绍了WebDynpro中各种控制器接口的使用方法,包括视图控制器、组件控制器及自定义控制器等,并详细阐述了如何通过这些接口访问特定的API,如IF_WD_VIEW、IF_WD_CONTEXT_NODE等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值