cancel
Showing results for 
Search instead for 
Did you mean: 

TableView, RENDER_CELL_START & P_Style

Former Member
0 Kudos

Hi,

I'm using a TableView in a BSP-View which has the SelectionMode = 'NONE'. Inside the iterator-method RENDER_CELL_START I add a link via which an entry can be selected and details will become reloaded. Now I want to highlight the selected line via the P_STYLE-Paramter in the method RENDER_CELL_START. An additional information: I'm using Design 2003...

Unfortunatelly I don't find the color which is normally set by selecting a line in SelectionMode = 'SINGLESELECT' (orange). Furthermore, there are some colors which don't seem to work - e.g. I tried the following color in three different ways:

P_STYLE = ifur_d2=>STCD_MARKED.

P_STYLE = 'celldesign:STCD_MARKED'.

P_STYLE = 'celldesign:MARKED'.

Can anybody help me please. It's important for me to find the same orange like in SingleSelection-Mode to have a corporate design.

Best regards, Stefan

Accepted Solutions (0)

Answers (1)

Answers (1)

athavanraja
Active Contributor
0 Kudos

this brings almost same color

p_style = 'celldesign:CRITICALVALUE_DARK;'.

Former Member
0 Kudos

Thanks for your answer.

I already tried this color but - as already mentioned - it is only almost the same color. Is there no possibility to get the same color (with design2003)?

Regards, Stefan

athavanraja
Active Contributor
0 Kudos

the css class for selected row is urSTSelRo. and your cell is rendered with the following code.

<td class="urSTTD urSTTDBdr urSTSelRo" id="tvX-cell-5-4"

so what you can do is using javascript you can set the class for the cell to get the color.

getElementById('tvX-cell-5-4').class = 'urSTSelRo' ,

where in tvX-cell-5-4

tvX is the tableview id

cell is a constant and 5 is the row and 4 is the column

Regards

Raja

Former Member
0 Kudos

Hi Raja,

I think Javascript is a good way to solve my problem.

Thanks a lot & best regards,

Stefan