Results 1 to 6 of 6

Thread: Search field doesn't work. Please help

  1. #1
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Search field doesn't work. Please help

    Hi, I have the following issue of which i hope can help me with;

    When i create a new Project and I assign an user to it, i want to search on 'Assigned to' field into ProjectList.
    But when I give in the assigned user it seems to find none related project because it gives me a blank List.
    See screenshot.
    Here are my custom files related to this issue; They are stored in custom\modules\Project\metadata

    editviewdefs

    0 =>
    array (
    'name' => 'assigned_user_name',
    'label' => 'LBL_ASSIGNED_USER_NAME',
    ),

    listviewdefs

    'ASSIGNED_USER_NAME' =>
    array (
    'width' => '10%',
    'label' => 'LBL_LIST_ASSIGNED_USER_ID',
    'default' => true,
    ),

    Searchdefs

    'assigned_user_name' =>
    array (
    'width' => '10%',
    'label' => 'LBL_ASSIGNED_USER_NAME',
    'default' => true,
    'name' => 'assigned_user_name',
    ),

    Someone knows what is wrong? Please help. Thanks in advance!
    Attached Images Attached Images  
    Last edited by dekleinemedia; 2009-07-24 at 11:44 AM.
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  2. #2
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: Search field doesn't work. Please help

    HI
    assign to as relate field. the relate field's are store only the relate - id.
    1.check you "list query" form sugar log file.
    2. try to custom the you list query.

  3. #3
    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: Search field doesn't work. Please help

    Replace the assigned_user_name field on searchdefs.php by this one:
    PHP Code:
                                array('name' => 'assigned_user_id''type' => 'enum''label' => 'LBL_ASSIGNED_TO''function' => array('name' => 'get_user_array''params' => array(false))), 

    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.

  4. #4
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: Search field doesn't work. Please help

    Quote Originally Posted by andopes View Post
    Replace the assigned_user_name field on searchdefs.php by this one:
    PHP Code:
                                array('name' => 'assigned_user_id''type' => 'enum''label' => 'LBL_ASSIGNED_TO''function' => array('name' => 'get_user_array''params' => array(false))), 

    Cheers
    Thank you André, it works!
    I appreciate
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  5. #5
    midjinou is offline Senior Member
    Join Date
    May 2009
    Posts
    26

    Default Re: Search field doesn't work. Please help

    I have the same problem almost. I created a field "reseller" of type 'related' in the accounts module. The search with account "name" no longer works. Research is done with the "reseller". Any idea?
    Last edited by midjinou; 2009-07-31 at 08:58 AM.

  6. #6
    midjinou is offline Senior Member
    Join Date
    May 2009
    Posts
    26

    Default Re: Search field doesn't work. Please help

    I have the same problem almost. I created a field "reseller" of type 'related' in the accounts module. The search with account "name" no longer works. Research is done with the "reseller". Any idea?

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-04-21, 12:39 PM
  2. Search does not appear to work
    By anthony11221 in forum Site feedback
    Replies: 1
    Last Post: 2009-06-27, 02:24 AM
  3. Lead search for all, doesn't work..Help!
    By hanjayac in forum Help
    Replies: 1
    Last Post: 2008-06-20, 09:23 AM
  4. custom search field doesn't work
    By jojiju in forum Developer Help
    Replies: 3
    Last Post: 2008-05-01, 04:15 PM
  5. Replies: 2
    Last Post: 2006-12-20, 08:15 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
  •