Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to display different colors for field values in column in view?

Posted on 2008-06-25
7
Medium Priority
?
282 Views
Last Modified: 2013-12-18
I have a number editable field which will contains 10 or 20 or 35 or 55 etc.
In my view under a column, i have the formula ->
Bgr := 255:255:255;
Chr := 255:0:0;
@If(projectCompP="10";Chr:Bgr;"")
but I do not see the color and the value display?

Please advise. Thank you.
0
Comment
Question by:kopibean
  • 4
  • 3
7 Comments
 
LVL 19

Expert Comment

by:madheeswar
ID: 21872237
the code will be in a column and for the values to display u need to have another column.
Example:
First column:
red := 255:0:0;
apricot := 0:128:0;
@If(status="Open";red;apricot)
Second column:
Status
0
 
LVL 19

Expert Comment

by:madheeswar
ID: 21872243

Rank: Sage
Is this what you were looking for?Yes No
madheeswar:
the code will be in a column and for the values to display u need to have another column.
Example:
First column: In the column properties, enable Use value as color
red := 255:0:0;
apricot := 0:128:0;
@If(status="Open";red;apricot)
Second column:
Status
0
 

Author Comment

by:kopibean
ID: 21872494
Hi,

I have tried your solution. It works only for dkgreen:white?
Below is my formula:

red := 255:0:0;
dkgreen := 0:128:0;
dkblue := 0:0:128;
white := 255:255:255;
@If(projectCompP<="99%";dkgreen:white;projectCompP="0%";red:white;projectCompP="100%";dkblue:white;"")

Pls advise.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 19

Expert Comment

by:madheeswar
ID: 21872594
Use this:
red := 255:0:0;
dkgreen := 0:128:0;
dkblue := 0:0:128;
white := 255:255:255;
apricot := 0:128:0;
@If(projectCompP<="99%";dkgreen:white;projectCompP="0%";red:white;projectCompP="100%";dkblue:white;apricot:white)
0
 

Author Comment

by:kopibean
ID: 21872731
Hi,

I have tried your formula but it does not work.
If projectCompP=10% and the projectCompP=100%, they are the same colors.
Is it have something to do with this ->  projectCompP<="99%"?

Pls advise.
0
 
LVL 19

Accepted Solution

by:
madheeswar earned 200 total points
ID: 21872803
in the first column, just give 255:0:0
and see if you get the colors.
And as per not working, it is to do with projectCompP field. make sure it has the data stored in numbers and not in %.
it won't understand %, only numbers you can do it for manupulation.
you do one thing: (if projectCompP is stored with %. and is a +ve)
res:=@If(@Length(projectCompP)=2;@Left(projectCompP;1);@Length(projectCompP)=3;@Left(projectCompP;2);@Left(projectCompP;3));
red := 255:0:0;
dkgreen := 0:128:0;
dkblue := 0:0:128;
white := 255:255:255;
apricot := 0:128:0;
@If(res<="99";dkgreen:white;res="0";red:white;res="100";dkblue:white;apricot:white)
0
 

Author Closing Comment

by:kopibean
ID: 31470867
Thank you very much!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question