Results 1 to 4 of 4

Thread: basis search - record broken

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

    Default basis search - record broken

    hi,
    in contact - basic search i have two field multiselect "Categoria" and "Fonte" .(view the attachment).
    the field is small and the record within the field are broken.
    can I fix this??

    thanks

    Sorry for my english
    Attached Images Attached Images  

  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: basis search - record broken

    It happens because at the Search Form sugar render dropdown and multi select fields as multi select ones with a hardcoded size. You can see that at include/SugarFields/Fields/Enum/SearchView.tpl
    To fix that you can either create a new template field or modify the existing one.

    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.

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

    Default Re: basis search - record broken

    hi andopes,
    thanks for the help..very nice...

    but... i want a select box .and i haven't idea of the code to write!!...

    now Start a search for this!!

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

    Default Re: basis search - record broken

    ok.. i have resolved..
    In the file custom/modules/YOURMODULE/metadata/ edit the file
    searchdefs.php :
    For ex with Account:

    find
    'account_type' =>

    And enter that ...

    PHP Code:
    'account_type' => array (
    'label' => 'LBL_TYPE',
    'name' => 'account_type',
    'displayParams' =>
    array (
    'size' => 1,
    ),
    ),

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Search Tabs Broken
    By s0me1 in forum Developer Help
    Replies: 2
    Last Post: 2009-11-09, 04:40 PM
  2. Search partly broken
    By xadora in forum Help
    Replies: 9
    Last Post: 2009-06-29, 03:04 PM
  3. Account name search broken
    By bennybtl in forum Help
    Replies: 4
    Last Post: 2008-05-13, 08:53 PM
  4. Replies: 4
    Last Post: 2008-04-03, 10:00 AM
  5. Advanced Bug Search broken in OS 4.0
    By andreasw in forum Help
    Replies: 3
    Last Post: 2006-06-22, 01:27 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
  •