Results 1 to 3 of 3

Thread: SELECT query for the list

  1. #1
    prajeesh is offline Senior Member
    Join Date
    Jun 2009
    Posts
    64

    Default SELECT query for the list

    Hi,

    I want to add a condition(filter ) in the SELECT sql query written for the list view page. But I was not able to find the file where the sql SELECT query is written. Please guide me .

    Thanks,
    Prajeesh

  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: SELECT query for the list

    The sql query is defined into function create_new_list_query at data/SugarBean.php
    If your module is a custom one you can feel free to implement such function into module class, but if your module is a built in one so you should need to create a custom controller to override the $this->bean.

    Best regards
    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
    juanmrs is offline Junior Member
    Join Date
    Feb 2012
    Posts
    2

    Red face Re: SELECT query for the list

    Quote Originally Posted by andopes View Post
    The sql query is defined into function create_new_list_query at data/SugarBean.php
    If your module is a custom one you can feel free to implement such function into module class, but if your module is a built in one so you should need to create a custom controller to override the $this->bean.

    Best regards
    Hello i am having troubles to change search condition, i would like to know if its possible change the condition for querys select from like 'word%' to like '%word%', so i can search inside the names,

    i hope you could help me.

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-08-28, 11:14 AM
  2. I want to change select query order in sugar dashlet
    By periyar in forum Developer Help
    Replies: 4
    Last Post: 2009-07-21, 01:09 PM
  3. subpanel select fails with update query
    By JVWay in forum Developer Help
    Replies: 2
    Last Post: 2008-06-11, 05:56 PM
  4. Replies: 0
    Last Post: 2006-05-02, 11:21 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
  •