Results 1 to 3 of 3

Thread: Add a custom field to quick / unified / global search

  1. #1
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Question Add a custom field to quick / unified / global search

    Hey guys,

    I got an annoying problem here. A few weeks ago I upgraded our sugar CE v6.2.0 to version 6.2.4 . I cannot say for sure if my try still worked in versionm 6.2.0, but I can say for sure it does not in 6.2.4.

    Target:
    I want to a a custom field contacts_cstm.office_c to the result list view of the global search.

    Previous solution from my wiki was:
    From a former version I had this code in file ../sugar/custom/Extension/modules/Contacts/Ext/Vardefs/search.php
    PHP Code:
    <?php
    $dictionary
    ['Contacts']['fields']['FIELD']['rname'] = office_c';
    $dictionary['
    Contacts']['fields']['FIELD']['vname'] = 'LBL_OFFICE';
    $dictionary['
    Contacts']['fields']['FIELD']['type'] = 'relate';
    $dictionary['
    Contacts']['fields']['FIELD']['dbType'] = 'varchar';
    $dictionary['
    Contacts']['fields']['FIELD']['table'] = 'contacts_cstm';
    $dictionary['
    Contacts']['fields']['FIELD']['unified_search] = true;  
    ?>
    This former solution does not work in 6.2.4. Therefore I tried it this way, as described in sugar wiki:
    SugarCRM Developer Blog » Blog Archive » HOWTO: Add custom fields into the global search

    I also tried the solutions from this thread http://www.sugarcrm.com/forums/f6/cu...-search-74369/ , but I guess I'm too stupid for it.

    Does anyone know which way works for sure in sugarCE v6.2.4? - Please advise.

  2. #2
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Unhappy Re: Add a custom field to quick / unified / global search

    Any hints?

    No one?



  3. #3
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Add a custom field to quick / unified / global search

    The only "list" views a module has is its listviewdefs.php and the files under subpanel folder. I suggest you to analyze these files to check which one are been used, and thus try customize it.
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Custom Field in Unified Search
    By imran123 in forum Developer Help
    Replies: 21
    Last Post: 2011-05-03, 02:08 AM
  2. unified search problem(custom field)
    By blitz2190 in forum Developer Help
    Replies: 3
    Last Post: 2009-12-03, 10:24 PM
  3. Customizing the Unified Search (Global Search)
    By jbeauchamp in forum Developer Help
    Replies: 0
    Last Post: 2008-05-14, 10:03 PM
  4. Modifying Global / Unified Search, might help some!
    By gsrigg in forum Developer Help
    Replies: 0
    Last Post: 2008-02-27, 03:12 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
  •