Results 1 to 4 of 4

Thread: How to change field of "last viewed" items

  1. #1
    peppolax is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    56

    Default How to change field of "last viewed" items

    Hi,

    I use modules Contacts and in lastviewed i see the field FirstName+LastNAme but i want to see another field.(for ex. only lastname )
    Is possible change this??

    Thanks.

  2. #2
    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: How to change field of "last viewed" items

    You need to create a logic_hook after_retrieve which modifies the fields name and full_name. Take a look at the include/SugarObjects/template/person/Person.php

    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.

  3. #3
    peppolax is offline Sugar Community Member
    Join Date
    Jan 2010
    Posts
    56

    Thumbs up Re: How to change field of "last viewed" items

    Thanks a lot.
    good advice .. I solved..

  4. #4
    dsuvankar is offline Sugar Community Member
    Join Date
    Sep 2008
    Posts
    187

    Default Re: How to change field of "last viewed" items

    Hi Can u pls guide me how to solve this? I am in Lead module and want Last Viewed list for leads will show the associated account name.
    I have tried in this way:
    Create a logic hook

    $hook_array['after_retrieve'] = Array();
    $hook_array['after_retrieve'][] = Array(1, 'LeadsGetSummaryText', 'custom/modules/Leads/LeadsGetSummaryText.php','LeadsGetSummaryText', 'get_summary_text');


    in the custom file

    class LeadsGetSummaryText extends Person
    {
    function get_summary_text(){
    return $this->account_name;
    }
    }


    Any thing I' am missing.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2010-01-01, 07:08 PM
  2. customize "Only my items" field
    By akkimca in forum Help
    Replies: 0
    Last Post: 2009-12-02, 11:09 AM
  3. Replies: 3
    Last Post: 2009-03-12, 01:42 PM
  4. Replies: 1
    Last Post: 2008-01-14, 07:52 PM
  5. Replies: 0
    Last Post: 2005-08-17, 07:06 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
  •