Results 1 to 6 of 6

Thread: soap + query not working

  1. #1
    lauren198 is offline Junior Member
    Join Date
    May 2009
    Posts
    4

    Unhappy soap + query not working

    hi all.

    i have a problem with sugar nuSoap.
    i can't do any query on 'get_entry_list'. i already checked the permission, and but it still not working.
    there are no any error message, and no any responds. i don't know why..

    if i list the it not using query, it's working fine.

    This is not working with query string:
    PHP Code:
    $fields = array('id','user_name','phone_fax');
    $sql "users.user_name like '%a%'";

    $param = array(
                                    
    'session'=>$this->con['id'],
                                    
    'module_name'=>'Users',
                                    
    'query'=>$sql
                                    
    'order_by'=>'',  
                                    
    'offset'=>0
                                    
    'select_fields'=>$fields,
                                    
    'max_results'=>$count
                                    
    'deleted'=>0);
    $result $this->call('get_entry_list',$param); 
    This is working without query string:
    PHP Code:
    $fields = array('id','user_name','phone_fax');
    $sql "";

    $param = array(
                                    
    'session'=>$this->con['id'],
                                    
    'module_name'=>'Users',
                                    
    'query'=>$sql,
                                    
    'order_by'=>'',  
                                    
    'offset'=>0
                                    
    'select_fields'=>$fields,
                                    
    'max_results'=>$count
                                    
    'deleted'=>0);
                    
    $result $this->call('get_entry_list',$param); 
    any body ever get this problem. ?? please help me..

    thanks before.

    best regards,

    lauren

  2. #2
    crmbalah is offline A Prolific Poster
    Join Date
    Mar 2009
    Location
    chennai
    Posts
    418

    Default Re: soap + query not working

    Hi
    user the following code

    Code:
    $fields = array('id','user_name','phone_fax');
    $sql = "user_name like '%a%'";
    
    $param = array(
                                    'session'=>$this->con['id'],
                                    'module_name'=>'Users',
                                    'query'=>$sql, 
                                    'order_by'=>'',  
                                    'offset'=>0, 
                                    'select_fields'=>$fields,
                                    'max_results'=>$count, 
                                    'deleted'=>0);
    $result = $this->call('get_entry_list',$param);
    just change the users.user_name to user_name

  3. #3
    lauren198 is offline Junior Member
    Join Date
    May 2009
    Posts
    4

    Default Re: soap + query not working

    thanks crmbalah for you reply,

    i already try that. n it still not working.

    i've used
    "table"."field"
    "field"
    change "LIKE" become "=", using the full sql statement.
    i also try using the proxy, but it still not working. have any idea??

    regard,

    lauren.

  4. #4
    r4ccoon is offline Junior Member
    Join Date
    May 2009
    Posts
    1

    Default Re: soap + query not working

    yeah. it happens to me too.
    the same code i ve tested on the different server. it was working good.
    when we moved to our new server, all the code is working
    except that get_entry_list with query parameter in it.

    is there anything i have to set in the sugar option
    or any php.ini setting or any weird options?

  5. #5
    lauren198 is offline Junior Member
    Join Date
    May 2009
    Posts
    4

    Default Re: soap + query not working

    anyone can help me and r4ccoon ??

    i'm running it on linux-fedora 10. i already try it to 3 difference fedora server, but it still not working.

    any configuration of sugar or php or apache should i change??
    i already put the full permission to sugar. but still not working..

    anyone (Master, Admin, Senior, developer) help me please...

    regards,

    lauren

  6. #6
    lauren198 is offline Junior Member
    Join Date
    May 2009
    Posts
    4

    Talking Re: soap + query not working

    fixed now...

    sugar error, not server, apache, php, or permission problem.

    thanks for spiderglobe:
    http://www.sugarcrm.com/forums/showthread.php?t=47007

    thanks all for not reply..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SOAP Query
    By Niggy in forum Developer Help
    Replies: 4
    Last Post: 2009-01-12, 01:40 PM
  2. Soap query Fail
    By jsagar in forum Developer Help
    Replies: 0
    Last Post: 2008-11-03, 10:36 AM
  3. SOAP how to query meeting attendees
    By pbrunnen1 in forum Developer Help
    Replies: 8
    Last Post: 2008-08-13, 03:31 PM
  4. How to Query with SOAP API
    By sugarmichael in forum Developer Help
    Replies: 1
    Last Post: 2008-03-10, 11:18 PM
  5. SOAP Query: Opportunities
    By sutfra in forum Help
    Replies: 0
    Last Post: 2006-10-23, 01:19 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
  •