Results 1 to 5 of 5

Thread: define criteria in query ?

  1. #1
    pasgou13 is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    21

    Unhappy define criteria in query ?

    Hello,

    this is a noob question :-)

    I want to view in the case module, when i am on default view, only the case who arenew or assigned. I have search in some files, but i dont know how do it .

    Could someone tell me where i can change this ?

    thankx

    Pasgou

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: define criteria in query ?

    Not exactly sure what you are asking. Is this something that you cannot do with the search pane at the top?
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    pasgou13 is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    21

    Default Re: define criteria in query ?

    Hello Kbrill,

    Not on the search criteria, but when i am on cases home. I just want to see on cases home, the cases that r open, or assigned or anything else except closed.

    Du u see what i mean ?

    regards

    Pasgou

  4. #4
    pasgou13 is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    21

    Default Re: define criteria in query ?

    I try this but seem to be not good because i can t see them in advanced search .

    if(isset($_REQUEST['query']))
    {
    // we have a query
    // first save columns
    $current_user->setPreference('ListViewDisplayColumns', $displayColumns, 0, $currentModule);
    $searchForm->populateFromRequest(); // gathers search field inputs from $_REQUEST
    $where_clauses = $searchForm->generateSearchWhere(true, "Cases"); // builds the where clause from search field inputs
    //pascal
    array_push($where_clauses, "(cases.status <> 'Closed')");
    //end pascal

    if (count($where_clauses) > 0 )$where = implode(' and ', $where_clauses);
    $GLOBALS['log']->info("Here is the where clause for the list view: $where");
    }

    Heeeelp !
    Last edited by pasgou13; 2006-12-14 at 10:28 AM.

  5. #5
    pasgou13 is offline Sugar Community Member
    Join Date
    Oct 2006
    Posts
    21

    Default Re: define criteria in query ?

    Can somebody said what it s wrong ..? pleeeeeease :-)

Thread Information

Users Browsing this Thread

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

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
  •