Hi,
Is their any way to changae the selected row color in a embedded view(html view with checkbox selection)on web as it’s done on the intoes web client.
I tried using the view column property “user color” and using a profile document as mentioned in help file but it’s not working.
Subject: change selected row color in web embedded view
- create a form called "$$ViewTemplateDefault"2) add this to ur form
“< span id=‘myTable’>”
–here put a field called “$$ViewBody”–
“< /span >”
3)paste the code below to ur javascript header
function FormatTable(){
var oChkBox=document.getElementsByName("$$SelectDoc")
for (var i=0; i<oChkBox.length;i++){
oChkBox[i].onclick=Clickme
}
}
function Clickme(){
var sColor
if (this.checked)
sColor="red"
else
sColor=""
var oSpan=document.getElementById("myTable")
var oTRs=oSpan.getElementsByTagName("TR")
for(var i=0;i<oTRs.length;i++){
if (oTRs[i].innerHTML.indexOf(this.value)!=-1)
oTRs[i].bgColor=sColor
}
}
- in ur form onload event add this “FormatTable()”
Subject: RE: change selected row color in web embedded view
thanks a lot lai. It’s working perfectlly fine.
I had also checked it with the embedded view and it’s working fine there also…
Cheers