![]() |
Admin 5/7/2007 |
Coloring the whole row is not possible without code modification. |
J
|
jskewes 5/23/2007 |
ADMIN - I have the same or similar question. |
J
|
Jane 5/23/2007 |
John, $str = "<table width=100% bgcolor="; if ($value="DONE") $str.="green"; if ($value="NOT STARTED") $str.="red"; str.="><tr><td>".$value."</td></tr></table>"; $value=$str; |
J
|
jskewes 5/25/2007 |
Hi Jane, John, to highlight field value proceed to the Visual Editor tab, double click on the field, select Custom on the "View as" settings dialog and add your code in it. Here is a sample: |
![]() |
Admin 5/25/2007 |
Try this: $str = "<table width=100% bgcolor="; |
K
|
kjp 6/29/2007 |
Bonjour |
J
|
Jane 6/29/2007 |
Hi, global $data; $str = "<table width=100% bgcolor="; if ($data["C_column"]=="DONE") $str.="green"; if ($data["C_column"]=="NOT STARTED") $str.="red"; str.="><tr><td>".$value."</td></tr></table>"; $value=$str;
|
K
|
kjp 6/29/2007 |
Thanks |
J
|
Jane 6/29/2007 |
Try to use this code: global $data; $str = "<font color="; if ($data["C_column"]=="DONE") $str.="green"; if ($data["C_column"]=="NOT STARTED") $str.="red"; str.=">".$value."</font>"; $value=$str; |
O
|
osluk 11/7/2007 |
Jane I think the $ was missing from this one as well Try to use this code: |
M
|
mmponline 2/13/2008 |
I'm trying to use this code to change background in costom code on view page. Get error message: $str = "<table width=100% bgcolor=";
|
J
|
Jane 2/13/2008 |
Stephan, |
V
|
vytb 2/13/2008 |
I want to color a row red when certain field conditions are met, such as when ChequeProduced=No. If this is possible please advise.
|
J
|
Jane 2/13/2008 |
Vitas, |
V
|
vytb 2/13/2008 |
Vitas, yes you're right with $str. Regarding the second question. I'm not sure that I understand you correctly. Custom code is on the "View as" settings dialog but Readonly option is on the "Edit as" settings dialog.
|
M
|
mmponline 2/13/2008 |
Working perfect with the $str. |
M
|
mmponline 2/13/2008 |
The code shows fine in list page. For some reason on the master /detail relation it does the following on the Master Table Info (List) page created. |
O
|
olegsg 2/13/2008 |
I have similar (HTML) problem but with font color. |
V
|
vytb 2/14/2008 |
As I wrote, I had this problem when I used 'readonly' option. Otherwise, is OK. Is it your case? |
O
|
olegsg 2/14/2008 |
As I wrote, I had this problem when I used 'readonly' option. Otherwise, is OK. Is it your case?
|
M
|
mmponline 2/14/2008 |
In my case the list page is fine, but the master page of the master /details page is "haywire" |
M
|
mmponline 2/14/2008 |
I see this problem is gone in the Beta version that came out today. Yippeee! |
P
|
pm8317 3/3/2008 |
John, to highlight field value proceed to the Visual Editor tab, double click on the field, select Custom on the "View as" settings dialog and add your code in it. Here is a sample:
|
J
|
Jane 3/3/2008 |
Patrick, |
P
|
pm8317 3/5/2008 |
Patrick, it's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and send to support@xlinesoft.com a URL to your pages along with instructions on reproducing this error. I'll find what's wrong with your project inspecting it at Demo account site.
|