Results 1 to 10 of 10

Thread: Search multiple in same field

  1. #1
    Join Date
    Jun 2008
    Posts
    7

    Default Search multiple in same field

    I am wondering if it is possible to create a custom search wherein i can select multiple states. For example i want to do a search on all leads that are in a certain lead status that are in NY NJ and CT? Any ideas?

  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: Search multiple in same field

    Hi kenneth

    Which version are you using?
    In SugarCRM 5.1 the status in Leads Advanced Search Form is displayed as a multi select field, so you can select as values as you want.

    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.

  3. #3
    Join Date
    Jun 2008
    Posts
    7

    Default Re: Search multiple in same field

    I am using 5.1. In the advanced search form I want to be able to select multiple states. It is not a multiselect dropdown.

  4. #4
    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 multiple in same field

    Hi kenneth

    That is so weird.
    I'm using a SugarCRM CE 5.1 and all enum fields (dropdown) are displayed as a multi select field in the Advanced Search.
    Can you attach the content of the files modules/Leads/vardefs.php, modules/Leads/metadata/searchdefs.php, modules/Leads/metadata/SearchFields.php.
    If these last two files exist into custom/modules/Leads/metadata then attach them.
    Which is your php version?

    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.

  5. #5
    Join Date
    Jun 2008
    Posts
    7

    Default Re: Search multiple in same field

    PHP is 5.2.6
    I zipped all files and attached. Thanks for your help.
    Attached Files Attached Files

  6. #6
    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 multiple in same field

    Hi kenneth

    I updated my files with the yours and the layout of the Leads Search Form display the status as a multi select field.
    This means it is not a metadata issue, perhaps it is a cache issue.
    Try to run the Quick Repair and Rebuild from Admin -> Repair
    Did you upgrade your Sugar from another version?

    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.

  7. #7
    Join Date
    Jun 2008
    Posts
    7

    Default Re: Search multiple in same field

    I upgrade from 5.0.f

  8. #8
    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 multiple in same field

    Hi kenneth

    All dropdown fields are displayed as dropdown in the Search Form, instead of multi select or only that one?
    Zip the folder include/SugarFields/Fields/Enum and attach the file in your next post.

    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.

  9. #9
    Join Date
    Jun 2008
    Posts
    7

    Default Re: Search multiple in same field

    Actually i am speaking of fields that are not dropdown or multiselect ( i.e. City or state) that is what i want to be able to choose more than one.
    Attached Files Attached Files

  10. #10
    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 multiple in same field

    Hi kenneth

    So it is not necessary to analyze the Enum field.
    You want to render non enum and non multienum fields as a multienum in the Search Form.
    Is that right?

    It yes then it requires some programming.
    For each non enum field you want to render as a multienum field in Search Form you need to define a function which will return the html options to insert into select field.
    You need to edit the searchdefs.php of the modules to specify which function must be invoked to get the field content.

    Let me know if you need additional help.

    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: 2
    Last Post: 2008-08-23, 08:49 AM
  2. How to add a field in a search field
    By jlabuelo in forum Developer Help
    Replies: 1
    Last Post: 2008-05-29, 02:46 PM
  3. Replies: 0
    Last Post: 2008-04-16, 06:27 AM
  4. Replies: 1
    Last Post: 2007-06-30, 03:27 PM
  5. BUG In Search/Edit Layout???
    By tj@estreet.com in forum Help
    Replies: 13
    Last Post: 2006-06-10, 05:43 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
  •