Results 1 to 9 of 9

Thread: how to search for leads of from several status options at once

  1. #1
    mitchberry is offline Senior Member
    Join Date
    May 2009
    Posts
    25

    Cool how to search for leads of from several status options at once

    Hi.

    this is in reference to the leads "advanced" search section aka. SearchForm.html


    i'm trying to figure out how to make it to where i can search multiple statuses at the same time for example, i have different statuses set up..

    dead do not call, low debt load, disconnected number, bad / wrong number, ETC...

    on the other hand, i have new, assigned, call with followup etc etc... There are several circumstances where i'd like to be able to search several statuses at once. like example for exporting all the bad ones to get a refund for the leads i purchased.

    on SearchForm.html, i changed the status code to a "multiple" like so

    <td class="dataField"><slot><select name='status' multiple="multiple" tabindex='2'>{STATUS_OPTIONS}</select></slot></td>

    This allows me to select multiple, but when i hit the search button, it wont search if i have more than one selected.

    how can i do this????

    Thanks in advance

  2. #2
    mitchberry is offline Senior Member
    Join Date
    May 2009
    Posts
    25

    Default Re: how to search for leads of from several status options at once

    Anyone?????

  3. #3
    vtps001 is offline Junior Member
    Join Date
    Jun 2009
    Posts
    1

    Default Re: how to search for leads of from several status options at once

    If they enter into the marketing field in any business it has important steps which will will takes to the success First is to plan the business, And should know the strategy which must be followed.....
    You can visit the site for the more ideas.

    Gentlerainmarketing - Marketing ideas,Marketing strategies,lead generation,new clients

  4. #4
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: how to search for leads of from several status options at once

    hello mitchberry,

    what version of Sugar are you using? I am a bit confused, because the status field appears in the Leads module appears as a multiselect search field in the Advances Search by default. So you should be able to search for more than one type of status without making any changes to the code.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  5. #5
    sandeeplakshmi is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    bangalore,India
    Posts
    20

    Smile Re: how to search for leads of from several status options at once

    hello mitchberry!!

    In Listview.php of the leads there is a method "generateSearchWhere" [ $where_clauses = $searchForm->generateSearchWhere($_REQUEST, true, "Leads"); ] of the 'SearchForm' class which generates the where conditions required for the search query to run.

    you can dig in to that function for creating a new where condition based on the $_REQUEST{which contains the multiple select data from the status} for the leads module.

    you need to do this as in the 4.5 versions you have only drop down options for status.

    You need to have bit knowledge of sql queries.

    -Sandeep Lakshmi
    Be hungry!! Be Foolish!!!

  6. #6
    mitchberry is offline Senior Member
    Join Date
    May 2009
    Posts
    25

    Default Re: how to search for leads of from several status options at once

    sugarcane, it is v 4.1 or something ancient like that...
    can't upgrade until i get a cloud server / dedicated server.

  7. #7
    mitchberry is offline Senior Member
    Join Date
    May 2009
    Posts
    25

    Default Re: how to search for leads of from several status options at once

    Sandeep, that sounds about right, however, i apparently overestimated my ability to understand exactly what all of that means.

    aside from that my listview.php is blank.

    "?"

  8. #8
    mitchberry is offline Senior Member
    Join Date
    May 2009
    Posts
    25

    Default Re: how to search for leads of from several status options at once

    "assigned to" does what i need status to do....

    if i could figure out where {the things in curly brackets} are defined, then i'm sure i can make the status work.

    where are the {curly.bracket_variables} defined????

  9. #9
    sandeeplakshmi is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    bangalore,India
    Posts
    20

    Default Re: how to search for leads of from several status options at once

    Hello mitchberry!!

    I am looking in to v4.5 [if the version you are working on is v4.1 then files should be same because they belong to same time line ] and i can clearly find all the methods to display the advanced search panel,basic & list view.
    {Question : are you looking into modules/Leads/ListView.php ? }

    If you want about the curly variables, those are called the xtpl variables used by sugar.
    you can jump into these methods - setup() & displayAdvanced() of the 'SeacrchForm{include/SearchForm/SearchForm.php}' class for more details.

    But, the path you are looking in to is different. if you are able to find the 'generateSearchWhere' method - its more than enough to complete your task.

    - Sandeep Lakshmi
    Be Hungry!! Be Foolish!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2008-02-07, 08:53 AM
  2. Search Options in Bug Tracker
    By bretvenuso in forum Help
    Replies: 1
    Last Post: 2007-03-19, 05:22 PM
  3. search options, help please
    By aaaa1es2000 in forum Help
    Replies: 1
    Last Post: 2007-02-20, 12:41 PM
  4. leads options
    By carlatpg in forum Feature Requests
    Replies: 0
    Last Post: 2006-01-11, 05:16 PM
  5. Replies: 0
    Last Post: 2005-07-18, 10:00 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
  •