/
Tree Adaption

Tree Adaption

Simple tree representations (without columns) can optionally use the Custom View Engine like forms. Models based on the CVE derive from the class /PCH/CLA_CFW_MDL_CVE_LIST_TREE. If it is a tree based on the CVE, proceed in the same way as for forms.

Otherwise the extension has to be done using the BAdI /PCH/CFW_BADI_LIST_TREE of the extension spot /PCH/CFW_WIDGET_LIST_TREE. The BAdI supports filters to restrict the implementation to a concrete application and/or a concrete widget.

The BAdI supports a variety of extensions. However, only the following methods are involved in extending data:

  • LOAD
    Called when the data is initially built. The data supplied by the model is available as nodes and items.

  • LOAD_CHILDREN
    For performance reasons, data is sometimes loaded only when a node is expanded. As with the LOAD method, the nodes and items can be modified.

  • LOAD_LATE
    Due to events in the user interface it can happen that additional data must be loaded afterwards (e.g. because a new object was created). In ProFramework we try to update data very selectively whenever possible. Instead of completely reloading the content, only new parts are reloaded or updated instead. The data to be reloaded is generically provided to the model using the CT_PARAMETERS parameter. Which information is exchanged between the widget and the model cannot be described in general, but depends strongly on the respective implementation.

  • NODE_REFRESH
    If a single node is updated, then the model is requested to provide the current data for the node. Accordingly, the node data can be adjusted and extended with the parameter CS_NODES and the items with the parameter CT_ITEMS.

 

© ProNovia AG | Imprint | Data Protection