Results 1 to 4 of 4

Thread: Cannot see data in List view

  1. #1
    sleo is offline Member
    Join Date
    Oct 2008
    Posts
    5

    Default Cannot see data in List view

    Hello,
    I just started playing around with SugarCRM a few weeks back for my company. I seem to be having a problem with a custom module I created. Any data I enter into the custom module, I am unable to view it in List view. Now I checked in the mysql database, and the information gets added to the appropriate table, so it is adding it to the database. Any suggestions will be greatly appreciated.

    Currently using: openSuse/Apache2/PHP 5/MySql/SugarCRM 5.1.0

  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: Cannot see data in List view

    Hi sleo

    Edit the file include/ListView/ListViewData.php and add this line

    PHP Code:
    echo "<LI>$main_query"
    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']; 
    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
    sleo is offline Member
    Join Date
    Oct 2008
    Posts
    5

    Default Re: Cannot see data in List view

    Thanks andopes. This gave me the sql statement the list view is using. Apparently one of the columns being selected is not in the database table. Will look through the custom module and see where it is coming from.

    __________________________________
    This is the Sql statement:

    SELECT lgstu_stumodule.id ,
    lgstu_stumodule_cstm.input_date_t_c,
    lgstu_stumodule_cstm.pfl_registered_c,
    lgstu_stumodule_cstm.pfl_source_c,
    lgstu_stumodule_cstm.pfl_interviewer_c,
    lgstu_stumodule_cstm.pfl_country_c,
    lgstu_stumodule_cstm.lge_office_c,
    lgstu_stumodule_cstm.direct_applicant_c,
    lgstu_stumodule_cstm.pfl_visa_counselling_only_c,
    lgstu_stumodule_cstm.pfl_scholarship_student_c,
    lgstu_stumodule_cstm.pfl_middle_name_c,
    lgstu_stumodule_cstm.pfl_dob_c,
    lgstu_stumodule_cstm.pfl_month_intake_c,
    lgstu_stumodule_cstm.pfl_year_intake_c,
    lgstu_stumodule.pfl_id ,
    CONCAT(IFNULL(lgstu_stumodule.first_name,''),' ',IFNULL(lgstu_stumodule.last_name,'')) as name,
    lgstu_stumodule.first_name ,
    lgstu_stumodule.last_name ,
    lgstu_stumodule.salutation ,
    lgstu_stumodule.title ,
    lgstu_stumodule.phone_work ,
    lgstu_stumodule.assigned_user_id
    FROM lgstu_stumodule
    LEFT JOIN lgstu_stumodule_cstm
    ON lgstu_stumodule.id = lgstu_stumodule_cstm.id_c where ((lgstu_stumodule.assigned_user_id = '1')) AND
    lgstu_stumodule.deleted=0
    ORDER BY lgstu_stumodule.pfl_id ASC;


    This is the error in mysql:
    ERROR 1054 (42S22): Unknown column 'lgstu_stumodule_cstm.pfl_year_intake_c' in 'field list'

  4. #4
    sleo is offline Member
    Join Date
    Oct 2008
    Posts
    5

    Default Re: Cannot see data in List view

    Works great now. Thanks again.
    Apparently the year intake field is not being added to the database when I set it to Integer (but if I set it to Test, it works fine). Weird.
    Last edited by sleo; 2008-10-14 at 04:05 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. List View display of email opt-out field
    By redbourne in forum Help
    Replies: 2
    Last Post: 2009-03-31, 04:09 PM
  2. Replies: 1
    Last Post: 2008-04-10, 09:08 PM
  3. List View Management Enhancement
    By vouz in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-03-01, 08:08 PM
  4. Replies: 1
    Last Post: 2006-12-09, 11:56 AM
  5. Problem with editing Employee List View
    By aheavilin in forum Help
    Replies: 0
    Last Post: 2006-06-07, 05:06 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
  •