Results 1 to 7 of 7

Thread: want to add square color boxes in listview..

  1. #1
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Default want to add square color boxes in listview..

    i have added color property in my leads and quotation according to the status of record. Now i want to add a description about the color in the listview above the records & below the search panel in listview so that user can easily understand which color is assigned for which lead status or quotation status.... For this right now i am editing the include/listview/listviewDisplay.php and added this code...


    echo"Order Confirmation";

    echo"hello";
    echo'<br/>';


    echo"Under Negotation";

    echo"hello";
    echo'<br/>';

    echo "Business Lost";

    echo"hello";
    echo'<br/>';


    echo"Confirmed with other Terms";

    echo"hello";
    echo'<br/>';


    echo 'AutoDead';


    Help me if anyone can in this regard. I will be highly obliged on receiving your help. Hope i will find my post reply soon......
    Attached Images Attached Images  
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  2. #2
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Default Re: want to add square color boxes in listview..

    hi have done little bit alteration in my code, and changed my view of displaying the leads and quotation status, thus getting the listview as shown in the snapshot. But this one bad consequence of this code is i am getting this color code in every module and in dashlet it shows this color code as many times , as many modules i have added to dashlet. Now i am not able to get an idea how to restrict its domain upto quotation and leads listview only.

    Please send ur suggestion , i will eagerly waiting for rply by anyone who can sort out my problem.......
    Attached Images Attached Images  
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  3. #3
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: want to add square color boxes in listview..

    Not sure where you made the change at, but you could always subclass the lead and quotes list view classes in the custom directory and interject what you need to do there.

  4. #4
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Default Re: want to add square color boxes in listview..

    1) for making the color representation according to leads and quotation status, now i am trying to add the code in custom/modules/leads/views/view.list.php .But now i am not able to run the code even after adding my code to this file. would u pls let me know what function or place where i keep my line of codes to implement this logic.

    2) Second option i am searching is trying to make a condition in ListViewDisplay.php that will only runs if the module name is quotation or leads but still not able to apply condition....


    // if($module_name ='Quote_Quotation')
    if($defines['focus']->object_name='Quote_Quotation')
    {
    $formatted_text = '<span style="color: Black;New">New</span>';
    echo '<p>'.$formatted_text;

    $formatted_text = '<span style="color: Black;Recycled">Recycled</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: Black;Inprocess">Inprocess</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: Black;Repeat Enquiry">Repeat Enquiry</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: Black;Regret">Regret</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: Black;Repeat Order">Repeat Order</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: Black;Not Our Product">Not Our Product</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: green;Order Confirmation">Order Confirmation</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: green;Converted">Converted</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: red;Dead">Dead</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: red;AutoDead">AutoDead</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: red;Business Lost">Business Lost</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: red;Under Negotation">Under Negotation</span>';
    echo $formatted_text;

    $formatted_text = '<span style="color: yellow;Confirmed with other Terms">Confirmed with other Terms</span>';
    echo $formatted_text;

    }
    Last edited by layman99; 2011-04-01 at 06:52 AM.
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: want to add square color boxes in listview..

    Quote Originally Posted by layman99 View Post
    if($defines['focus']->object_name='Quote_Quotation')
    I am a bit confused as to what it is you are doing and where, but the above should have two equal signs, not one, as such:

    Code:
     if($defines['focus']->object_name=='Quote_Quotation')
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  6. #6
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Default Re: want to add square color boxes in listview..

    Quote Originally Posted by Angel View Post
    I am a bit confused as to what it is you are doing and where, but the above should have two equal signs, not one, as such:

    Code:
     if($defines['focus']->object_name=='Quote_Quotation')
    I have already tried the this code but its not working....
    As i have status field in leads and quotation. Now the user wants to show the status color showing which color representing which status . For this i am trying to creating the status name with color representing b/w the search panel and listview data . But the file i am editing to do is the ListViewDisplay.php which works globally for all the modules. Now what i want...

    WHENEVER USER CLICK ON LEADS AND QUOTATION MODULE THEN ONLY THIS CODE SNIPPET RUNS...BUT TILL NOW I AM NOT ABLE TO TRACE THE MODULE NAME WITH ANY OF THE SYNTAX.....

    now i hope u understand the problem of creating such code snippet
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

  7. #7
    layman99's Avatar
    layman99 is offline Senior Member
    Join Date
    Jan 2011
    Location
    Shimla
    Posts
    82

    Thumbs up Re: want to add square color boxes in listview..

    Thanks to all who has seen my post problem. Now finally i got solution regarding my problem. Now its working for me....
    Dinesh Joshi
    sugarcrm CE 6.1.0
    joshishimla99@gmail.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change font size and color in listview
    By peppolax in forum Help
    Replies: 2
    Last Post: 2012-05-05, 10:30 PM
  2. Change color in the listview
    By nanduruchi in forum Developer Help
    Replies: 3
    Last Post: 2010-11-13, 06:09 PM
  3. How do I remove select boxes in listview
    By mikesolomon in forum Developer Help
    Replies: 14
    Last Post: 2010-09-20, 06:26 AM
  4. change listview color
    By souza in forum Help
    Replies: 3
    Last Post: 2007-09-12, 10: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
  •