Results 1 to 4 of 4

Thread: custom list view query help

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

    Exclamation custom list view query help

    this is a new concept to me so i don't know where to start, i want this where clause to be added to the list view query regardless of a search or first time loading the list view,
    Code:
    assigned_user_id = '$cur_user' OR man_id = '$cur_user'
    where $cur_user will contain the current user id. I have heard about the create_new_list_query() and custom controller.php but I am at a loss on how or where to make these changes any help would be great.

  2. #2
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: custom list view query help

    Solutions is about three post down

    http://www.sugarcrm.com/forums/showthread.php?t=58494
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

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

    Default Re: custom list view query help

    thank you this worked great, and for anyone else reading this i used the example chrislynch8 provided in his first post.

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

    Default Re: custom list view query help

    next question, right before the where statements i put this $bean->db->query($query,true) to get some other info form another table and it displays a blank list, any ideas?

    *EDIT*
    found the answer it should be $this->bean->db->query($query,true)
    Last edited by blitz2190; 2010-05-26 at 06:21 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. list view generated wrong query
    By madhrishi in forum Help
    Replies: 5
    Last Post: 2011-12-27, 09:00 PM
  2. link to detail view from list view in the custom module problem
    By shamimwilson in forum Developer Help
    Replies: 10
    Last Post: 2009-12-24, 10:47 AM
  3. Custom query for list view in custom module
    By precar in forum Developer Help
    Replies: 3
    Last Post: 2009-06-15, 04:01 AM
  4. Custom query on custom view (List)
    By jasv in forum Developer Help
    Replies: 4
    Last Post: 2009-02-09, 10:36 AM
  5. Meeting/Call list view SQL query
    By mooky in forum Developer Help
    Replies: 0
    Last Post: 2008-12-28, 10:57 PM

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
  •