cancel
Showing results for 
Search instead for 
Did you mean: 

checkbox -> Context Node -> ALV

Former Member
0 Kudos

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é

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

thanks, you made my day.

Answers (1)

Answers (1)

pranav_nagpal2
Contributor
0 Kudos

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