Results 1 to 5 of 5

Thread: No entry found in addressbook, Help!

  1. #1
    dfeng99 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    4

    Default No entry found in addressbook, Help!

    I've installed community edition 5.0g, but email addressbook doesn't work perfectly. When I click on the address book "Add Entries" button, a "select address book entries" panel shows up but there is no entry in the panel and no response even I click the add button on the panel.
    I did have entered some contacts and users with email addresses. Is it a Bug of 5.0g? I check the program, the add button calls to the function addMultipleContacts(),

    addMultipleContacts : function() {
    var rows = SUGAR.email2.addressBook.grid.getSelections();
    var contacts = [];
    for (var i = 0; i < rows.length; i++) {
    var data = rows[i].data;
    contacts.push({id : data.bean_id, module : data.bean_module});
    }
    var contactData = JSON.stringifyNoSecurity(contacts);

    SUGAR.email2.addressBook.grid.toggleSelectAll(fals e);

    AjaxObject.startRequest(callbackGetUserContacts, urlStandard + "&emailUIAction=addContactsMultiple&contactDat a=" + contactData);
    },

    I found that the rows variable gets value 0. Can anyone help?

  2. #2
    dfeng99 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    4

    Default Re: No entry found in addressbook, Help!

    I found the following code in the EmailUI.js file doee not get the result from server.

    searchContacts : function() {
    var fn = document.getElementById('input_searchNameFirst').v alue;
    var ln = document.getElementById('input_searchNameLast').va lue;
    var em = document.getElementById('input_searchEmail').value ;
    this.grid.getDataSource().baseParams['first_name'] = fn;
    this.grid.getDataSource().baseParams['last_name'] = ln;
    this.grid.getDataSource().baseParams['email_address'] = em;
    this.grid.getDataSource().baseParams['emailUIAction'] = 'getAddressSearchResults';
    SUGAR.email2.addressBook.grid.toggleSelectAll(fals e);
    this.grid.getDataSource().load({params: {start:0, limit: 25}});
    //SUGAR.email2.addressBook.addressBookDataModel = this.grid.getDataSource();
    },

    code for case "getAddressSearchResults" in EmailUIAjax.php generate the result but doesn't past it Weird! I still can't resolve it.

  3. #3
    dfeng99 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    4

    Default Re: No entry found in addressbook, Help!

    It has been resolved!!!

    add die(); code in the end of EmailUIAjax.php in case "getAddressSearchResults" near line 1365.

    Thanks God!

  4. #4
    dfeng99 is offline Junior Member
    Join Date
    Aug 2008
    Posts
    4

    Default Re: No entry found in addressbook, Help!

    By the way, install Starface module will cause JSON.parse error. It will affact many email functions.

  5. #5
    arun_raja is offline Senior Member
    Join Date
    Nov 2009
    Posts
    21

    Default Re: No entry found in addressbook, Help!

    Quote Originally Posted by dfeng99 View Post
    It has been resolved!!!

    add die(); code in the end of EmailUIAjax.php in case "getAddressSearchResults" near line 1365.

    Thanks God!
    Hi,

    Where exactly should i add the above line? When i search in the addressbook i am able to get the result but when i click on the "Next" button, i am not able to get the results even though the no of search result rows is 102. Please help me out.

    Thanks,
    Arun.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. broken links on forcast screen
    By peter.brown in forum Help
    Replies: 0
    Last Post: 2006-10-06, 07:04 AM
  2. Replies: 2
    Last Post: 2006-09-23, 02:15 PM
  3. Not A Valid Entry Point
    By comsys in forum Polish
    Replies: 2
    Last Post: 2006-06-17, 09:19 PM
  4. Calendar: New Entry not listed
    By kimb in forum Help
    Replies: 0
    Last Post: 2005-06-27, 10:09 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
  •