Solved

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

Posted on 2008-06-25
7
268 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
names.nsf ODS upgrade 4 424
Migration: Lotus Notes to Exchange 2013 10 325
IBM Notes 9 crashed when open any attachment file 16 443
Lotus Domino server 9 7 69
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now