Results 1 to 6 of 6

Thread: Account alert!

  1. #1
    timolein is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    51

    Default Account alert!

    My customer needs to have "alert" on Accounts 'Listview' when editing specific field on Account 'Editview'.

    How can I do this ?

    Alert can be colored or bolded account name..?

    Idea of this is there is "do NOT sale to this customer" field and when you type something on it, it should give warning.

    Tpl

  2. #2
    timolein is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    51

    Default Re: Account alert!

    Does anyone have idea how to do this ?

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Account alert!

    That is not so clear.
    Can you clarify in details?

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    timolein is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    51

    Default Re: Account alert!

    Okay, hope this image clear this issue..

    tpl
    Attached Images Attached Images  

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

    Default Re: Account alert!

    You need to override the ListView.tpl for the Accounts module and within your version of the ListView.tpl, examine the value of the "Tolous" field and apply the the alert if true.

    There are several examples in these forums on how to override the ListView.tpl
    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
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Account alert!

    An easy way is to create a custom view.list.php for the module and implement the method listViewProcess:

    PHP Code:
        function listViewProcess() {
            if(isset(
    $_REQUEST['record']) && $_REQUEST['record'] != '') {
                
    $tpl 'custom/include/ListView/ListViewReports.tpl';
            } else {
                
    $tpl 'include/ListView/ListViewGeneric.tpl';
            }

            
    $this->processSearchForm();
            
    $this->lv->searchColumns $this->searchForm->searchColumns;
            
            if(empty(
    $_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false) {
                
    $this->lv->setup($this->seed$tpl$this->where$this->params);
                echo 
    get_form_header($GLOBALS['mod_strings']['LBL_LIST_FORM_TITLE'], ''false);
                echo 
    $this->lv->display();
            }
        } 
    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mailbox alert
    By pentalift1 in forum General Discussion
    Replies: 0
    Last Post: 2007-06-21, 03:44 PM
  2. Replies: 1
    Last Post: 2007-03-08, 12:04 AM
  3. Replies: 5
    Last Post: 2007-02-10, 03:51 PM
  4. Timeout Alert
    By morn in forum Help
    Replies: 1
    Last Post: 2005-09-13, 04:23 AM

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
  •