Results 1 to 2 of 2

Thread: Set one of many contacts as the primary

  1. #1
    abrassell is offline Member
    Join Date
    Jul 2008
    Posts
    13

    Default Set one of many contacts as the primary

    In my database I will have many records that are essentially the same. They were imported from an aviation database. Everything is the same except the plane. The contact is the Dir of Maintenance. This one Contact name will have 15 records because he is in charge of the maintenance of 15 planes. When I search for my contact I get 15 records. How can I make it so it will only give me 1 record?

    Thanks,

    Al

  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: Set one of many contacts as the primary

    Hi, Abrassell

    You can edit the file custom/modules/Contacts/metadata/listviewdefs.php and add the attribute

    PHP Code:
        'distinct' => true
    In the NAME field.

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-07-17, 06:39 AM
  2. Replies: 6
    Last Post: 2008-02-10, 08:07 PM
  3. Replies: 4
    Last Post: 2007-03-28, 08:58 AM
  4. Importing Contacts: Where can I set a universal value?
    By leenwebb in forum Developer Help
    Replies: 3
    Last Post: 2007-01-19, 09:27 PM
  5. Replies: 11
    Last Post: 2006-10-26, 01:13 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
  •