cancel
Showing results for 
Search instead for 
Did you mean: 

Can we change the color of each cell in TableView in HTMLB

Former Member
0 Kudos

Hi

I want to change the cell color in TableView dynamically.

Can we change the color of each cell in TableView in HTMLB?

If yes, give the exact solution.

Regards,

Nithya

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

not a helpful answer

detlev_beutner
Active Contributor
0 Kudos

Hi Nithya,

That the second answer was not helpful is very obvious. But, in my humble opinion, I think my answer really should be helping much. Even if you have solved your problem in some other, maybe even better and/or easier way, then you should describe it in short so that other people finding this thread when having the same problem could get the best/easiest solution too.

Best regards

Detlev

Former Member
0 Kudos

Hi Nithya,

declare your colors in array,then call that colors where you need.

Like this,

Declaring,

<b><% String colors[]={"#23930D","#DDB601","#C50D0B","#4AB9D9","#F36523".....};%></b>

Then Call the array inside the for loop,

<b>bgcolor= "<%=colors<i>%>"</b>

Vth Rgds,

Mythili R

/if it works,assign marks/

detlev_beutner
Active Contributor
0 Kudos
Former Member
0 Kudos

Quite Comprehensive