Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Enabling global search for custom fields and modules

  1. #1
    pwieland is offline Member
    Join Date
    Apr 2009
    Posts
    11

    Default Enabling global search for custom fields and modules

    I know how to add a custom field to the module's basic & advanced search from the module builder.
    I can't figure out how to add it to the global search field thats located in the upper right hand corner of the screen.

    Example, I've added a custom field named "Customer #" to my accounts module. Now I want the global search to return the matching accounts as results when I search by customer number...

    Thanks in advance.

  2. #2
    SilenceIT's Avatar
    SilenceIT is offline Senior Member
    Join Date
    Apr 2009
    Posts
    25

    Default Re: Enabling global search for custom fields and modules

    I am looking for the same thing, it seems the global search does not include custom fields. I will post back here if I find it.
    SilenceIT - Evolution through Solutions Ottawa, Ontario, Canada (613) 627-4370
    - Web Applications / Conceptions d'Applications Web
    - Telephony Systems / Systèmes Téléphoniques
    - Hosting / Hébergement
    - IT Consulting / Consultation IT

  3. #3
    pwieland is offline Member
    Join Date
    Apr 2009
    Posts
    11

    Default Re: Enabling global search for custom fields and modules

    Quote Originally Posted by SilenceIT View Post
    I am looking for the same thing, it seems the global search does not include custom fields. I will post back here if I find it.

    I found this wiki page, but I don't know which vardefs.php file to add the code to.
    http://www.sugarcrm.com/wiki/index.p..._Global_Search


    I have these three vardefs.php files for my module, which I built in Module Builder. Which file is upgrade safe? Which ones will get overwritten when I make changes in module builder and "Deploy" them?

    Code:
    modules/eto_Sales_Orders/vardefs.php
    custom/modulebuilder/builds/Engineered_To_Order/SugarModules/modules/eto_Sales_Orders/vardefs.php
    custom/modulebuilder/packages/Engineered_To_Order/modules/Sales_Orders/vardefs.php

  4. #4
    vishwasrao's Avatar
    vishwasrao is offline A Prolific Poster
    Join Date
    Sep 2008
    Location
    Pune,Maharashtra,India
    Posts
    385

    Smile Re: Enabling global search for custom fields and modules

    Quote Originally Posted by pwieland View Post
    I know how to add a custom field to the module's basic & advanced search from the module builder.
    I can't figure out how to add it to the global search field thats located in the upper right hand corner of the screen.

    Example, I've added a custom field named "Customer #" to my accounts module. Now I want the global search to return the matching accounts as results when I search by customer number...

    Thanks in advance.
    Hi ,
    This seems to be good idea .
    I am also looking for same.
    If u find it plz reply me.
    Vishwasrao Salunkhe
    vishwasrao.salunkhe@gmail.com
    Fan Of Sachin Tendulkar
    Operating System :- Windows XP
    PHP Version:- 5.3
    Apache :-2.2.11
    MYSQL :-5.1.36

  5. #5
    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: Enabling global search for custom fields and modules

    Quote Originally Posted by pwieland View Post
    I found this wiki page, but I don't know which vardefs.php file to add the code to.
    http://www.sugarcrm.com/wiki/index.p..._Global_Search


    I have these three vardefs.php files for my module, which I built in Module Builder. Which file is upgrade safe? Which ones will get overwritten when I make changes in module builder and "Deploy" them?

    Code:
    modules/eto_Sales_Orders/vardefs.php
    custom/modulebuilder/builds/Engineered_To_Order/SugarModules/modules/eto_Sales_Orders/vardefs.php
    custom/modulebuilder/packages/Engineered_To_Order/modules/Sales_Orders/vardefs.php
    HI guys

    This article regards custom fields on Global Search for 4.5.1 version.
    I´m working on same feature for 5.*
    I´ll post the solution at this thread as soon as I get the answer.

    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.

  6. #6
    ftloop is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    11

    Default Re: Enabling global search for custom fields and modules

    any progress here? I'm stuck on the same issue.

    thanks

    tom

  7. #7
    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: Enabling global search for custom fields and modules

    Hi Tom

    Unfortunately not yet.
    But it is scheduled to be done.

    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.

  8. #8
    jayramirez9 is offline Member
    Join Date
    May 2008
    Posts
    7

    Default Re: Enabling global search for custom fields and modules

    Hi there-

    Did this ever get a resolution? Does the vardefs.php solution NOT work in 5.x

  9. #9
    Mbayer is offline Member
    Join Date
    Jun 2010
    Posts
    6

    Default Re: Enabling global search for custom fields and modules

    I need to revive this thread as I have the same problem. Is there a solution now to add a custom field to global search in version 5.x (mine is 5.2.0)? And are there any pitfalls with MultiSelect fields?

  10. #10
    blitz2190 is offline Senior Member
    Join Date
    Jul 2009
    Posts
    105

    Default Re: Enabling global search for custom fields and modules

    to add a custom field to global search create a file called search.php in /custom/Extension/modules/MODULENAME/Ext/Vardefs/

    with content

    PHP Code:
    $dictionary['MODULE']['fields']['FIELD']['rname'] = 'field_c';
    $dictionary['MODULE']['fields']['FIELD']['vname'] = 'LBL_FIELD';
    $dictionary['MODULE']['fields']['FIELD']['type'] = 'relate';
    $dictionary['MODULE']['fields']['FIELD']['dbType'] = 'varchar';
    $dictionary['MODULE']['fields']['FIELD']['table'] = 'table_cstm';
    $dictionary['MODULE']['fields']['FIELD']['unified_search'] = true
    repair/rebuild

    and to add custom module it is

    PHP Code:
    $dictionary['MODULE']['unified_search'] = true

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to add a custom field (not module) to Global Search?
    By marygriffen in forum Developer Help
    Replies: 1
    Last Post: 2009-01-23, 02:56 PM
  2. Replies: 0
    Last Post: 2008-11-12, 07:32 PM
  3. Replies: 10
    Last Post: 2008-08-05, 05:44 PM
  4. Search from other modules custom fields
    By wagnerbl in forum Help
    Replies: 0
    Last Post: 2005-04-08, 02:05 PM

Tags for this Thread

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
  •