Results 1 to 3 of 3

Thread: Dashlet custom query not working

  1. #1
    sivakumar.bdu is offline Senior Member
    Join Date
    Aug 2009
    Posts
    22

    Default Dashlet custom query not working

    I created dashlets for task module. i could not use my own query. My requirement is i want to search the task table name field ends with "birthday".

    This is my process method in MyTask.php dashlets class


    function process() {
    if (isset($this->displayColumns) && array_search('name', $this->displayColumns) !== false) {

    $query =true;
    $lvsParams['select'] = "name ";
    $lvsParams['from'] = "Tasks";
    $lvsParams['where']="name REGEXP 'Birthday'";

    }
    parent:rocess($lvsParams);
    }
    }





    i am not sure this is correct..... any body help me ..




    Thanks
    Last edited by sivakumar.bdu; 2009-10-01 at 03:21 PM.

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Dashlet custom query not working

    Have you tried $lvsParams['where']="name like '%Birthday'"; ?

  3. #3
    sivakumar.bdu is offline Senior Member
    Join Date
    Aug 2009
    Posts
    22

    Default Re: Dashlet custom query not working

    Yes i tried with $lvsParams['where']="name like '%Birthday'";
    also still its not working.....

    This is the process method





    function process() {
    if (isset($this->displayColumns) && array_search('name', $this->displayColumns) !== false) {


    $query =true;
    $lvsParams['select'] = "name ";
    $lvsParams['from'] = "Tasks";
    $lvsParams['where']="name like '%Birthday'";
    }
    parent:rocess($lvsParams);
    }
    }



    any other solution for this...............

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. 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
  2. Replies: 0
    Last Post: 2009-06-15, 10:56 AM
  3. soap + query not working
    By lauren198 in forum Help
    Replies: 5
    Last Post: 2009-05-25, 06:47 AM
  4. Dashlet Query
    By sacramentojoe in forum Help
    Replies: 0
    Last Post: 2006-12-08, 05:32 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
  •