on 09-04-2007 8:37 AM
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
not a helpful answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nithya,
You would have to implement your own ICellRenderer, see http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/table/ICellRenderer.html and then use http://help.sap.com/javadocs/NW04S/SPS09/hb/com/sapportals/htmlb/table/TableView.html#setCellRendere...
Hope it helps
Detlev
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.