
Class CL_WD_CONTEXT_SERVICES is used for identifying context changes. This refers to all changes including those made by programs (see Context Change Log , for which only the user input is recorded). Normally the context change log should be used.
An * in the attribute name means that all attributes of the node have changed: A static attribute of the context node has probably been changed, but this cannot be ascertained, and if it has changed, nor can the attribute be ascertained (the user called, for example, method SET_STATIC_ATTRIBUTES( )).
Methods
SUBSCRIBE_TO_NODE_CHANGES
Method for registering changes to context nodes. A list of nodes is transferred.
UNSUBSCRIBE_FROM_NODE_CHANGES
Method for deregistering changes to a list of nodes.
UNSUBSCRIBE_ALL
Method for the complete deregistration of changes.
DEACTIVATE_SUBSCRIPTIONS
Method for temporarily deactivating changes to registrations.
ACTIVATE_SUBSCRIPTIONS
Method for reactivating changes to registrations.
GET_CHANGE_LIST
Method for getting the change list with optional reset.
RESET_CHANGE_LIST
Method for resetting the change list.
Additional Methods
The following methods provide information on the nodes to be mapped and their originals. They are mainly used to dynamically create binding paths to mapping nodes in views.
GET_NODE_METAPATH_FOR_CTRL
GET_MAPPED_NODE_FOR_CONTROLLER
GET_ORIGINAL_NODE
GET_ELEMENT_PATH_FOR_CTRL
Note that the followed methods are obsolete . For this reason you should not use it.
UPDATE_NODE_FROM_TABLE_BY_KEY
UPDATE_ELEMENT_FROM_STRUCTURE
UPDATE_NODE_FROM_TABLE_BY_IND
GET_TABLE_FROM_NODE
To process these changes:
Generate an instance of class CL_WD_CONTEXT_SERVICES.
Register for a set of nodes using SUBSCRIBE_TO_NODE_CHANGES.
Fetch and reset the change list at regular intervals using GET_CHANGE_LIST.
If necessary, use (DE-)ACTIVATE_SUBSCRIPTIONS to switch the change recording temporarily to off, and on again.
Delete the registration of the change recording.