![]() |
Sergey Kornilov admin 11/6/2006 |
Tony, str = "<table width=100% bgcolor="
|
C
|
Codea author 11/8/2006 |
Hi Sergey, Tony, you can set View as type of this field to Custom and try the following code: str = "<table width=100% bgcolor="
|
J
|
Jane 11/8/2006 |
Tony, str = "<table width=100% bgcolor=" if strValue="Yes" then str = str & "grey" else str = str & "white" end if str = str & "><tr><td>" & strValue & "</td></tr></table>" |
C
|
Codea author 11/13/2006 |
Tony, if your field type is text you need to use double quotes:
|
![]() |
Sergey Kornilov admin 11/14/2006 |
Tony, if InStr(Request.ServerVariables("SCRIPT_NAME"), "_export")<1 then str = "<table width=100% bgcolor=" strValue=Left(strValue,3) if (strValue)="Yes" then str = str & "#999999" else str = str & "" end if str = str & "><tr><td>" & strValue & "</td></tr></table>" strValue = str end if |
C
|
Codea author 11/14/2006 |
Tony, nothing is wrong here. This code produces some HTML which looks nice on the list page however is not necessary on the Export page. You can use the following workaround. See my changes in bold:
|