NetTalk Central

Author Topic: Coloring fields in Browse based on value in record?  (Read 3414 times)

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Coloring fields in Browse based on value in record?
« on: June 07, 2010, 12:37:30 PM »
Hi,
What is the technique to color a field in a browse based on a field value.
i.e. if Yes - color field1 Green.  If NO, color field 1 Red. 
Is this getting into the CSS?
If it is, then what do I need to modify in the CSS and how do I call it for that browse field?
Thanks,
Ron Jolda

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Coloring fields in Browse based on value in record?
« Reply #1 on: June 07, 2010, 02:46:32 PM »
Yes you need to do via CSS. You can set a custom CSS class for each field on the browse. In your case you would need to set this to a variable and then add your logic in the BeforeTableRows routine. You should have your own CSS file that you can add to. Study the NT CSS file and copy some chunks of code to your own CSS and rename and modify them. Use FireBug with FireFox to debug the CSS.

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Coloring fields in Browse based on value in record?
« Reply #2 on: June 07, 2010, 03:41:21 PM »
You dont have to go to the embed, you have a Conditional tab where you can programa the consition and the CSS for each one (among other things)
Alberto
-----------
Regards
Alberto

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: Coloring fields in Browse based on value in record?
« Reply #3 on: June 07, 2010, 04:06:03 PM »
THanks for your insight guys.
Now I know where to start!
Going to have a go at it!
Ron