The Tree Model controls, like the Tree controls, are broken into three main classes for the three different types:
- CL_SIMPLE_TREE_MODEL
- CL_LIST_TREE_MODEL
- CL_COLUMN_TREE_MODEL.
First the Tree model maintains a copy of all the node and item data or you at the application level. There are methods that you can call to read this data later and to check for duplicate node keys before inserting them into your tree. This eliminates the need for you to maintain this information in your own program.
The Tree model also checks all the node keys before they are passed to the front end controls. This eliminates the Automation errors and short dumps that are caused by duplicate keys in the tree control.
The Tree model controls all the interaction with the front end control. It buffers the data and allows you to easily control when data is sent to the front end. It also has highly optimized flush synchronization.
Finally it adds much needed methods such as Search and Print to the Tree Control.
Although greatly simplified over the tree control, Tree model still takes some practice to learn. SAP has some example programs that should help you. Go to SE38 and from the menu choose to look at the control examples under the utilities menu option.
- SAPSIMPLE_TREE_MODEL_DEMO
- SAPTLIST_TREE_MODEL_DEMO
- SAPCOLUMN_TREE_MODEL_DEMO
- SAPSIMPLE_TREEM_DRAG_DROP_DEMO
- SAPSIMPLE_TREEM_DRAGDROP_DEMO2
| < Prev | Next > |
|---|





