Skip to Content
0
Jul 15, 2008 at 09:12 AM

Checkbox as column in tableVIew without using iterator..

55 Views

Hi All,

Our requirment is to have a column as checkbox in a TV.

The application is of type page with flow logic and also i am not very comfortable with the concept of databinding , iterator and MVC.

How can i acchieve the above without using an iterator?

The code in layout for TV is:

<htmlb:tableView             id              = "material"
                                           headerText      = "Materials"
                                           headerVisible   = "true"
                                           design          = "alternating"
                                           visibleRowCount = "10"
                                           fillUpEmptyRows = "true"
                                           onRowSelection  = "MyEventRowSelection"
                                           selectionMode   = "MULTILINEEDIT"
                                           filter          = "SERVER"
                                           table           = "<%= itab_materials %>" >

                          <htmlb:tableViewColumns>
                              <htmlb:tableViewColumn columnName="MATNR" title="Material Number" width="150">
                              </htmlb:tableViewColumn>
                              <htmlb:tableViewColumn columnName="MAKTG" title="DESCRIPTION" width="200">
                              </htmlb:tableViewColumn>
                              <htmlb:tableViewColumn columnName="VERPR" title="PRICE" width="150">
                              </htmlb:tableViewColumn>
                              <htmlb:tableViewColumn columnName="QTY" title="QUANTITY" edit="TRUE" width="200">
                              </htmlb:tableViewColumn>
                              <htmlb:tableViewColumn columnName="MEINS" title="UNIT" width="150">
                              </htmlb:tableViewColumn>
                          </htmlb:tableViewColumns>
                       </htmlb:tableView>

How to add the checkbox column and read its value ie. if its is checked or not?

Thanks,

Anubhav.