Results 1 to 5 of 5

Thread: Accounts disappeared in List view

  1. #1
    mzenns is offline Sugar Community Member
    Join Date
    Aug 2008
    Location
    N. Central PA, USA
    Posts
    39

    Unhappy Accounts disappeared in List view

    I added a field to the Accounts module using Studio, then added it to all layouts except the list view. Now when I go to the Accounts module, none of the accounts show up in the list view. What did I do wrong, and where do I look to fix this?

    Sugar CE 5.01
    MySQL 5
    PHP 5
    Ubuntu 8.04 Server

  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: Accounts disappeared in List view

    Hi mzenns

    Probably it is due a query error in MySQL.
    Edit the file include/ListView/ListViewData.php and add this line:

    PHP Code:
    echo "<LI>$main_query"
    Just after the line:

    PHP Code:
    $main_query $ret_array['select'] . $params['custom_select'] . $ret_array['from'] . $params['custom_from'] . $ret_array['where'] . $params['custom_where'] . $ret_array['order_by'] . $params['custom_order_by']; 
    Let me know the query in the ListView of Accounts.

    Cheers
    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
    mzenns is offline Sugar Community Member
    Join Date
    Aug 2008
    Location
    N. Central PA, USA
    Posts
    39

    Unhappy Re: Accounts disappeared in List view

    Editing the ListView.php file didn't change the result. Here is the error I get now, and still no list.

    SELECT accounts.id ,accounts_cstm.lbl_tech_name_c,accounts_cstm.tech_ phone_c,accounts_cstm.ip_blocks_c,accounts_cstm.pr oj_install_c,accounts_cstm.act_install_c,accounts_ cstm.multi_site_c,accounts_cstm.accountnumber_c, accounts.name , accounts.billing_address_city , accounts.phone_office , jt0.user_name assigned_user_name , jt0.created_by assigned_user_name_owner , 'Users' assigned_user_name_mod, accounts.assigned_user_id FROM accounts LEFT JOIN accounts_cstm ON accounts.id = accounts_cstm.id_c LEFT JOIN users jt0 ON jt0.id= accounts.assigned_user_id AND jt0.deleted=0 AND jt0.deleted=0 where accounts.deleted=0 ORDER BY accounts.name ASC
    Last edited by mzenns; 2008-10-24 at 05:31 PM. Reason: user error

  4. #4
    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: Accounts disappeared in List view

    Hi mzenns

    Run this query into phpMyAdmin inside the same database used by SugarCRM.
    Certainly it will return an error. This error can guide you to the fix.

    Cheers
    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.

  5. #5
    mzenns is offline Sugar Community Member
    Join Date
    Aug 2008
    Location
    N. Central PA, USA
    Posts
    39

    Talking Re: Accounts disappeared in List view

    Thanks! For some reason, the field was created in the Sugar gui, but not in the database. I deleted the field in the Sugar gui, then re-added it and everything's fine now.

    I'm very glad there's folks willing to help, as I'm just getting back into database and programming, and have never worked with MySQL and PHP before.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  2. accounts list view empty?!
    By napx in forum General Discussion
    Replies: 3
    Last Post: 2006-06-14, 08:30 PM
  3. Accounts List View Problems
    By vktravis in forum Help
    Replies: 2
    Last Post: 2005-12-20, 10:01 PM
  4. Help!! Can't see Accounts in list view
    By tczarnecki in forum Help
    Replies: 2
    Last Post: 2005-12-02, 03:42 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
  •