Creating Two-Dimensional Context Nodes with Range Supply
A range supply node enables precisely the data set requested to be passed to a two-dimensional context node (for example, only the visible lines of a DataGrid). This reduces the amount of memory required by the context node.
To create a two-dimensional range context node, use method ADD_NEW_CHILD_NODE of interface IF_WD_CONTEXT_NODE_INFO. With parameters SUPPLY_METHOD and SUPPLY_OBJECT of method ADD_NEW_CHILD_NODE you define which range supply method is to be used.
You can find an example in the system in component WDR_TEST_DATA_GRID in view TC_SUPPLY.
Assistance class CL_WDR_TEST_DATA_GRID_ASSIST from the example has range supply method SUPPLY_DATA. This method is referenced with parameter SUPPLY_METHOD of method ADD_NEW_CHILD_NODE.
Signature of the Range Supply Method:
| Parameter | Typing |
|---|---|
| PARENT_ELEMENT | TYPE REF TO IF_WD_CONTEXT_ELEMENT |
| NODE | TYPE REF TO IF_WD_CONTEXT_NODE_2D |
| FROM_X | TYPE I |
| FROM_Y | TYPE I |
| TO_X | TYPE I |
| TO_Y | TYPE I |
| SET_INITIAL | TYPE ABAP_BOOL |