Professional Documents
Culture Documents
Standard Attributes
wd_this (always available - references controller - see next section for list of
methods because it is dependent on controller type. Within a component click
on Display interface controller to view attributes and methods associated
with its wd_this)
wd_context (always available - list of methods)
wd_comp_controller (if componentcontroller defined as used controller for
another controller, it appears in the other controller as type
IG<USDED_CONTROLLER>. A view's componentcontroller is always
present for the view as type IG_COMPONENTCONTROLLER which is
thewd_this for componentcontroller. )
wd_assist (if an assistance class is related to a component)
METHODS
wd_get_api
wd_create_action
USED CONTROLLERS
methods
o get_<USED_CONTROLLER>_CTR (e.g.,
get_componentcontroller_ctr)
o wd_cpuse_<COMPONENT_USAGE> (e.g., wd_cpuse_model)
o wd_cpifc_<COMPONENT_USAGE> (e.g., wd_cpifc_model)
INBOUND PLUGS
methods
o handle<INBOUND_PLUG>
OUTBOUND PLUGS
methods
o fire_<OUTBOUND_PLUG>_plg
CONTEXT
constants
o wdctx_<NODE>
types
o element_<NODE>
o elements_<NODE>
USER-DEFINED ATTRIBUTES
ACTIONS
ORDINARY METHODS
IF_<VIEW> (e.g., IF_VIEW1) generated interface for view controllers - view interfaces
always private
<ATTRIBUTE> (e.g., RANKING)
WDCTX_<NODE> (e.g., WDCTX_SEARCH_RESULTS)
WD_GET_API()
WD_CREATE_ACTION()
FIRE_<OUTBOUND_PLUG>_PLG()
<ORDINARY_METHOD>()
<ORDINARY_METHOD>()
(Z)IWCI_<COMPONENT> (globally visible)
WD_GET_API()
IG_COMPONENTCONTROLLER (global)
<ATTRIBUTE> flag PUBLIC checked
WDCTX_<NODE>
<ORDINARY_METHOD>() flag INTERFACE not checked
FIRE_<EVENT>_EVT flag INTERFACE checked
IF_COMPONENTCONTROLLER (local)
<ATTRIBUTE> flag PUBLIC not checked
WD_CREATE_ACTION()
Except for the View Controller, which has no public interface, the wd_get_api() is
defined in the public interface of all the controllers. Therefore, it can be called from
any controller that declares the usage of that controller. Is the following correct?
wd_this->wd_cpifc_<COMPONENT_USAGE>-wd_get_api()
Web Dynpro API for custom controllers (and embedded in view/window &
component controllers)
IF_WD_CONTROLLER
NAME: string
GET_ACTION()
GET_COMPONENT()
GET_CONTEXT()
GET_CONTROLLER_INFO()
GET_MESSAGE()
GET_MESSAGE_MANAGER()
GET_PERSONALIZATION_MANAGER()
IS_ALIVE()
WD_THIS->get_componentcontroller_ctr()->wd_get_api()
WD_COMP_CONTROLLER->wd_get_api()
WD_THIS->wd_get_api()->get_component
WD_CONTEXT
WD_THIS->wd_get_api()->get_context()->ROOT_NODE
GET_PERSONALIZATION_MANAGER() Returns
IF_WD_PERSONALIZATION_MANAGER (methods used to load, save or delete
personalization variants. Not accessible from view or window controllers)
GET_EMBEDDING_WINDOW_CTLR() Returns
IF_WD_WINDOW_CONTROLLER if the view or window is embedded in another
window (methods allow access to the meta data description of the window controller,
e.g., embedded views, navigation links, name of default view)
GET_CONTEXT_MENU_MANAGER() Returns
IF_WD_CONTEXT_MENU_MANAGER methods allow access to the runtime objects
of context menus. Can not be called from window controller.
PREPARE_DYNAMIC_NAVIGATION()
& DO_DYNAMIC_NAVIGATION() Returns IF_WD_NAVIGATION_SERVICES
or IF_WD_NAVIGATION_SERVICES_NEW methods allow the definition of
navigation links dynamically. This is necessary if component usages are defined and
instantiated at runtime. Then the inbound plugs of the related interface views do not
exist at design time, which is the prerequisite to define static navigation links. If you
dynamically create plugs, you must dynamically delete them. The methods in
IF_WD_NAVIGATION_SERVICES_NEW return handles that may be used to delete
the dynamically defined navigation links subsequently. If the methods of the interface
IF_WD_NAVIGATION_SERVICES are used to create the navigation links, the
method remove_dynamic_meta_data() has to be called to remove the links.
IF_WD_MESSAGE_MANAGER
Category TEXT
REPORT_SUCCESS()
REPORT_WARNING()
REPORT_ERROR_MESSAGE()
REPORT_FATAL_ERROR_MESSAGE()
REPORT_ATTRIBUTE_ERROR_MESSAGE()
REPORT_ELEMENT_ERROR_MESSAGE()
Category EXCEPTION
REPORT_EXCEPTION()
REPORT_FATAL_EXCEPTION()
REPORT_ATTRIBUTE_EXCEPTION()
REPORT_ELEMENT_EXCEPTION()
Category T100
REPORT_T100_MESSAGE()
REPORT_ATTRIBUTE_T100_MESSAGE()
REPORT_ELEMENT_T100_MESSAGE()
IS_EMPTY()
HAS_VAL_ERRORS_FOR_WINDOW()
HAS_VALIDATION_ERRORS()
CLEAR_MESSAGES()
REMOVE_MESSAGE()
GET_MESSAGES()
GET_MESAGE_FOR_ID()
Standard Messages
1. report_success()
2. report_t100_message() with MSGTY = S, I
3. report_exception() with MESSAGE_TYPE = 0
Warnings
1. report_warning()
2. report_t100_message() with MSGTY = W
3. report_exception() with MESSAGE_TYPE = 1
Error Messages
1. report_error_message()
2. report_t100_message() with MSGTY = E
3. report_exception() with MESSAGE_TYPE = 2