cancel
Showing results for 
Search instead for 
Did you mean: 

Changing cloros on row selection in itarotors in BSP HTMLB

Former Member
0 Kudos

Hi all,

I am new to BSP new technolgy.I have created a itrator table view with following code:-

<htmlb:tableView id                    = "tv_idint"
                       table                 = "<%= it_error_data %>"
                       visibleRowCount       = "100"
                       selectionMode         = "MULTISELECT"
                       emptyTableText        = "No Data Found"
                       selectedRowIndexTable = "<%= selectedRowIndexTable %>"
                       width                 = "920"
                       sort                  = "SERVER"
                       iterator              = "<%= iterator %>" >
      </htmlb:tableView>

Problem :- How i can add the feature that on row selection the color of selected row gets changed (get dark color).

Thanks

Bhagat Rajput

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hai bhagat,

Review the following code and also set the onRowSelection attribute

<htmlb:tableView id              = "tvX"
                       headerText      = "Connections"
                       headerVisible   = "true"
                       design          = "alternating"
                       visibleRowCount = "8"
                       fillUpEmptyRows = "true"
                       onHeaderClick   = "MyEventHeaderClick"
                       onRowSelection  = "MyEventRowSelection"
                       selectionMode   = "LINEEDIT"
                       keyColumn       = "carrid"
                       table           = "<%= sflight %>"
                       iterator        = "<%= tv_iterator %>" />

Regards,

Albin

Former Member
0 Kudos

Thanks Anubhav , But the Row does not get highlighted automatically.Only check box colrs get changed

while i want that complete row color should be highlighted with some dark color.

Hope you got my point.

former_member188685
Active Contributor
0 Kudos

if you want automatically then you have to use the Iterator and there you have to assign the colors what ever you want in the cell_start method using the P_STYLE option.

Read the help documentation of the Table View Iterator

former_member184111
Active Contributor
0 Kudos

Hi Bhagat,

You dont need to do anything for that , the selected row is highlighted automaticaly.

Regards,

Anubhav