Skip to Content
avatar image
Former Member

select line in table using checkbox ontoggle event

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 08, 2008 at 11:31 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2008 at 11:30 AM

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

    Thanks

    Suman

    Add comment
    10|10000 characters needed characters exceeded