on 01-21-2009 3:11 PM
Dear experts,
i want to do the following:
1. In my Component Controller Context i want do declare an attribut where i can deposit
if a checkbox is checked or not.
2. In my ALV i want to insert a column that displays the value of the attribut created in the node.
How can i realize this ?
Thanks and best regards
René
Hi Rene,
The question is not pretty clear, but as per my understanding i am explaning it as follows:
If you have a node in the component controller of the WDC, then firstly copy that node in to the view context where you want to display the ALV.
Now create an view container, and include ALV in it.
Now go to WDDOINIT and now call the instantiate the ALV component.
later call the get_model method of the interface controller of the ALV.
now create a reference to the checkbox UI element, of class cl_wd_ui_checkbox, something like this class will be there.
Now call get_column of the desired column on which you want to make it as the checkbox.
now call set_cell_editor method and supply the reference created for the checkbox.
This makes ALV with a check box field in it.
The source code extract for reference will be mentioned later as i dont have the access to the SAP as of now.
Hope it helps to start the development.
Regards,
Shashikanth. D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rene,
If your checkbox is a separate entity i.e. not in ALV simply bind the checked property of CheckBox with boolean type attribute and get it where you want......
and for displaying value in alv refer this tutorial in saptechnical
/Tutorials/WebDynproABAP/ALV/page1.htm
regards
Pranav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.