Results 1 to 4 of 4

Thread: How to change color in listview on custommodlue what i created

  1. #1
    macdpl is offline Junior Member
    Join Date
    Jan 2012
    Posts
    1

    Default How to change color in listview on custommodlue what i created

    Hi.

    Can somebody tell me how to change cloro in listed view dependent form value form field in this module

    For example

    In module called My payments i have a filed called payed it is a dropdown list with 3 values: not, yes, pending

    I want when i see index of all payments have colors on list if value is not than red, if yes than green and when pending orange

    How could i do this


    I'm sorry but im very fresh on php

    Pls help me

  2. #2
    neel1154's Avatar
    neel1154 is offline Sugar Community Member
    Join Date
    May 2010
    Location
    Pune, Maharashtra, India
    Posts
    210

    Default Re: How to change color in listview on custommodlue what i created

    try process record logic hook
    http://softwarriors.webs.com
    cheers!!!!

    ~~~~~~~~~Never give up~~~~~~~~

  3. #3
    christianknoll's Avatar
    christianknoll is offline Sugar Community Member
    Join Date
    Nov 2008
    Posts
    888

    Default Re: How to change color in listview on custommodlue what i created

    overwrite get_list_view_data in your bean and return the value wrapped in an element (e.g. div, span> with the proper style. Look e.g. in modules/Calls/Call.php . same happens there for the date. since this is also your own custom module no need to do this in a hook.

    regards, christian.

    Quote Originally Posted by macdpl View Post
    Hi.

    Can somebody tell me how to change cloro in listed view dependent form value form field in this module

    For example

    In module called My payments i have a filed called payed it is a dropdown list with 3 values: not, yes, pending

    I want when i see index of all payments have colors on list if value is not than red, if yes than green and when pending orange

    How could i do this


    I'm sorry but im very fresh on php

    Pls help me

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    764

    Default Re: How to change color in listview on custommodlue what i created

    You could use a customCode to customize a column with some flag like an icon to say it was created by you.
    Rafael Queiroz Gonçalves
    OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. want to add square color boxes in listview..
    By layman99 in forum Developer Help
    Replies: 6
    Last Post: 2011-04-18, 10:05 AM
  2. Change color in the listview
    By nanduruchi in forum Developer Help
    Replies: 3
    Last Post: 2010-11-13, 07:09 PM
  3. change font size and color in listview
    By peppolax in forum Help
    Replies: 1
    Last Post: 2010-09-23, 04:48 PM
  4. change listview color
    By souza in forum Help
    Replies: 3
    Last Post: 2007-09-12, 11:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •