cancel
Showing results for 
Search instead for 
Did you mean: 

How can I Modify the color in a tableview?

Former Member
0 Kudos

Hello,

I need modify the text color in some rows in a table view. How can i do it? I'm traying it with the interface IF_HTMLB_TABLEVIEW_ITERATOR in the method RENDER_CELL_START.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

you can use some predefined color schemes.

check out this code

method IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.

CASE p_column_key.

WHEN 'ICON'.

p_style = 'cellDesign:GROUP_LEVEL1' .

WHEN 'FLDATE'.

p_style = 'cellDesign:GROUP_LEVEL2' .

WHEN 'CURRENCY'.

p_style = 'cellDesign:GROUP_LEVEL3' .

ENDCASE.

endmethod.

also check out this thread

Regards

Raja

Former Member
0 Kudos

Thanks,

I have done that you write me and it works ok, with the p_style I have been able to modify the background color. But, How can i modify the text color in the tableview?

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Try to build a HTMLB textView for the p_replacement_bee parameter and inject CSS style into its text property, or more simply, tags like <font color="red">Your text here</font>

Have a look at these weblogs for further information :

/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator

/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators

Hope it helps.

Best regards,

Guillaume

Message was edited by: Guillaume Garcia

Answers (0)