cancel
Showing results for 
Search instead for 
Did you mean: 

select line in table using checkbox ontoggle event

Former Member
0 Kudos

hi all,

i am using tristate checkbox in table control, based on value of checkbox i have to change the corresponding icon in the same row.

checkbox value

check icon1

undecided icon2

blank icon3

i am able to change icon only after selecting the particular row and set the value of checkbox,

but if i change the checkbox value without selecting the row, the icon not change,

what is happenning, if i select the row, then i am able to read which row is selected, so based on checkbox value i changed the particular row,

can i select the row by checkbox only, any other solution is appreciated,

Regards

Bala

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi,

In the action handler of the checkbox , check the parameter WDEVENT , in that you will find some attribute which will point to the row index in which the checkbox is selected , may be the reference to the node element or index .

Regards

Yash

Former Member
0 Kudos

hi yashpal,

Thanks for ur reply

how can i check the wdevent ?

Some sample coding is needed

Thanks

Bala

Yashpal
Active Contributor
0 Kudos

Put a debug point in checkbox.. action handler and then analyse the WDEVENT object , u can find in the parameter list of handler..

Regards

Yash

Answers (1)

Answers (1)

Former Member
0 Kudos

use ON_CLICK event of salv_wd_table this will trigger for every click in cell.

Thanks

Suman