Data we enter on the webui get saved in the database via BOL Entities
To find which component is driving the WebUI Page just press F2 on the view element
from the technical settings you can have the UI component and its corresponding view
To find which component is driving the WebUI Page just press F2 on the view element
from the technical settings you can have the UI component and its corresponding view
- Execute the transaction "BSP_WD_CMPWB" (BSP WEBDYNPRO COMPONENT WORKBENCH)
- Enter the name of the component
- click on display
- Identify the view which you have found out by clicking F2 on the UI Element by expanding the views folder
- double click on the View
- Expand the Context in the right pane
- expand the context nodes
- Double Click the context node which u have found by clicking F2 on the UI Element
- you will find the context node class with the extension "CNXX
Note
Controller Class will have an "IMPL " Extension.
Context class will have an "CTXT" Extension.
Context Node Class will have an " CNXX" Extension.
The same thing is applicable for controller, window and the view. Just double click on the selected element in the left pane be it either a controller, window or a view the class extensions are same.
The Context Node class contain a collection wrapper class
A collection wrapper class is a container that hold the BOL Entities
A BOL entity is a class instance with underlying structures mapped to the database tables.
These BOL Entities will be of type CL_CRM_BOL_ENTITY
For example consider the Form View which contains the data that is being held by 1 BOL entity which in turn is held by a Collection wrapper
Note
For Table view the data is 1:N, i.e there can be N BOL entities (all with the same structures) corresponding to the each row of the table view and held by the collection wrapper.
To access BOL Entity underlying the view
If you are in the method of an IMPL Class
Controller( or ME)-->Context-->Context Node-->Collection Wrapper-->Get_current ( ).
If you are in the method of a Context Node class
context node-->Collection Wrapper-->Get_Current ( ).
Get_current ( ) gives the BOL Entity underlying the view.
You can also use get_first ( ) (in the case of a form view) as there is only 1 BOL Entity.
In case of a table view where each and every row of the table view corresponds to 1 BOL Entity you can loop around the collection wrapper and get the BOL Entity of the corresponding row using the index.
Get_next ( ) also gives the next BOL Entity underlying the table view.
No comments:
Post a Comment