Solved

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

Posted on 2008-06-25
7
269 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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 AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Creating a new theme in discussion8.ntf 6 162
VBA Lotus notes 2 198
IBM Lotus notes 9 94
Lotus notes Formula to trigger Lotusscript 1 541
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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