on 03-04-2013 9:25 AM
Hi friends,
I have 3 tables lets say zrao_img,zrao_show,zrao_seats. I have stored data in 3 internal tables.(lt_img,lt_show,lt_seats).
I created the attributes lt_img,lt_show,lt_seats as table type in component controller.and i filled them in WDDOINIT of component controller.
But how to fetch these 3 tables data in different views.
Regards,
Narasimha.
Hi Rao,
Read those attributes of the component controller from the view controller using the object reference for component controller. wd_comp_controller.
e.g wd_comp_controller->lt_img.
Best regards,
Arun Krishnamoorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You want to display the contents on the views or you want to read the contents in view methods?
In either case, you first need to map the component controller nodes that point to the tables into the corresponding view. Basically, you can drag-and-drop the nodes from the component controller context into the view context.
In order to read context node table contents in view methods you use the web dynpro wizard. It will add all the logic you need to read internal tables (there is an option that enables you to get context nodes values as table operations).
If you want to display the table contents on a view, you add a table UI element. Then, you right-click the element in the object list and select "Binding" wizard that will help select an internal table node, what fields to be displayed, and whether they should be display text, input fields, checkboxes, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.