Results 1 to 2 of 2

Thread: How to override the default 20 entries in the response for get_entry_list.

  1. #1
    sukarna is offline Junior Member
    Join Date
    Dec 2010
    Posts
    2

    Default How to override the default 20 entries in the response for get_entry_list.

    Hello everybody,

    Can anybody tell How to override the default 20 entries in the response for get_entry_list. I have loaded SugarCRM CE 6.1.0 locally. my url- localhost/sugar610.
    I am using this function $this->proxy->get_entry_list($this->sess,'Users', "", '', 0, array(), 0, false); only 20 entrie are in the response, but actually there are 58 enties. Please help.

  2. #2
    sukarna is offline Junior Member
    Join Date
    Dec 2010
    Posts
    2

    Default Re: How to override the default 20 entries in the response for get_entry_list.

    Hello everybody,

    This problem posted my is almost solved. For your information, I am using soap service of Sugar CRM Community Edition - 6.1.0 and to create client I am using NuSoap for developing an API common to SalesForce, MS Dynamics and Sugar CRM. And hence I do not have access to the config.php of the server, where I can change the option of 20 entries per response. It is solved as follows.

    PROBLEM ANALYZED -
    ***************************
    1- First I tried to put highest 32 bit integer value supported by PHP i.e.- 2147483647 as the default value of limit, expecting that often total number of entries in a module won't be more than that. But this worked well for Accounts.
    $result = $client->get_entry_list($this->sess,'Accounts', '', '', 0, array(), 2147483647, false); This returned correct result of total 53 entries. With print_r it displayed Array ( [result_count] => 53 .....
    But did not work for Users.
    $result = $client->get_entry_list($this->sess,'Users', '', '', 0, array(), 2147483647, false); It returned blank, with print_r($result) nothing displayed.
    And another remarkable thing happened, that actually there are total 8 entries in Users module. But when I used $result = $client->get_entry_list($this->sess,'Accounts', '', '', 0, array(), 60, false); It returned 60 entries with repeatation of some entries. -( Perhaps some bugs. If anybody knows or finds solution, Please inform us.)

    SOLUTION -
    *************
    Then first I used the
    $result = $client->get_entries_count($this->sess, 'Users', '', false);
    Then put $result['result_count'] as default value to limit. as follows
    $result = $client->get_entry_list($this->sess,'Users', '', '', 0, array(), $result['result_count'], false);
    Here I have not put any query in get_entries_count(), but it is necessary to put the query if it is available. Otherwise, The some rows may be repeated as I mentioned above.

    Comments - Though this worked well, it took some extra time to call soap for get_entries_count.

    Thanks to everybody and specially to CoderForLife on IRC chat of #sugarcrm, for his guidance.
    Last edited by sukarna; 2011-01-04 at 06:29 AM. Reason: Should mention, the version of Sugar CRM used

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 override SugarObjects
    By SugarDev.net in forum Developer Help
    Replies: 7
    Last Post: 2010-11-23, 02:45 AM
  2. override home.tpl
    By oozypal in forum Developer Help
    Replies: 6
    Last Post: 2010-10-21, 01:42 AM
  3. How to Override subpaneldefs.php
    By ndrtek in forum Help
    Replies: 4
    Last Post: 2009-07-04, 03:23 AM
  4. Override files
    By vsaranya in forum Developer Help
    Replies: 0
    Last Post: 2008-01-24, 06:26 AM
  5. Override functionality
    By florent in forum Help
    Replies: 0
    Last Post: 2005-03-23, 04:35 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
  •