Show TOC

Background documentationCL_WD_CONTEXT_SERVICES Locate this document in the navigation structure

 

Class CL_WD_CONTEXT_SERVICES is used for identify 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.

Note Note

Note that 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 it cannot be specified for sure, and if so which atttribute (the user has called, for instance method SET_STATIC_ATTRIBUTES( ) ).

End of the note.
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 path in views to mapping nodes.

  • GET_NODE_METAPATH_FOR_CTRL

  • GET_MAPPED_NODE_FOR_CONTROLLER

  • GET_ORIGINAL_NODE

  • GET_ELEMENT_PATH_FOR_CTRL

Note Note

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

End of the note.

Activities

To process these changes:

  1. Generate an instance of the class CL_WD_CONTEXT_SERVICES.

  2. Register for a set of nodes using SUBSCRIBE_TO_NODE_CHANGES.

  3. Get and rest the change list at regular intervals using GET_CHANGE_LIST.

  4. If necessary, switch the change recording using (DE-)ACTIVATE_SUBSCRIPTIONS temporarily to off and on again.

  5. Delete the registration of the change recording.