Results 1 to 10 of 10

Thread: Export to CSV Doesn't Work for Tasks

  1. #1
    datablueprints is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    12

    Default Export to CSV Doesn't Work for Tasks

    If I click on Activities, and then click on Tasks to view a task list, and I select the a bunch of tasks and click on Export, I receive an empty CSV file. The column headings appear, but the tasks do not.

    This also happens when exporting Accounts to a CSV file. But, exporting Contacts and Leads works just fine.

    Is there a fix for this?



    PHP Version 5.2.5
    Version 5.0.0b (Build 3150)
    FreeBSD 6.2
    MySQL 5.0.45
    Apache 1.1

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Export to CSV Doesn't Work for Tasks

    You may want to check the sugarcrm.log logfile and see if there was an error running the query for the exports that are faliing.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    datablueprints is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    12

    Default Re: Export to CSV Doesn't Work for Tasks

    Quote Originally Posted by dpatech
    You may want to check the sugarcrm.log logfile and see if there was an error running the query for the exports that are faliing.
    Thanks. I looked at the log ... it's empty.

    My gut feeling is it may have something to do with the fact that I've changed the layout of the list view for Tasks, but I'm only speculating.

  4. #4
    heta's Avatar
    heta is offline Sugar Community Member
    Join Date
    Nov 2007
    Location
    Ahmedabad,India
    Posts
    214

    Default Re: Export to CSV Doesn't Work for Tasks

    hi datablueprints,

    i made changes in my list view & found that problem exists for me too..

    then i found that if u change the layout of any module it will not export the data.

    the problem exists because the checkbox doesnt carry the id of the record...

    then i tried to change the code @ include/ListView/ListViewGeneric.tpl

    i changed

    $rowData[$params.id] to $rowData.id (on line no 99 for me.)

    then it worked fine..

    i dont know the side effect of the change as it is a general layout..

    but for time being i havent found any problem...

    i hope it helps
    Best Regards
    ---------------------------------------
    Heta Shah - iNET PROCESS
    heta.shah@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  5. #5
    datablueprints is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    12

    Default Re: Export to CSV Doesn't Work for Tasks

    Thanks! That worked for me.
    PHP Version 5.2.5
    Version 5.0.0b (Build 3150)
    FreeBSD 6.2
    MySQL 5.0.45
    Apache 1.1

  6. #6
    shelzmike is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    17

    Default Re: Export to CSV Doesn't Work for Tasks

    Heta -

    Not to hijack a post here, but you mentioned something that may be related to a problem that I have. I am unable to export my accounts from the list view. (I am also unable to mail merge, or merge duplicates). However, this problem is only in Accounts, I can export others (such as Leads). You mentioned that you are unable to export if you change the layout of any module. Well, I did change the layout of the Accounts List View, so could that be my problem. Now, before you answer, I have also changed the layout of my Leads (Detail, List, and Edit Views) yet I CAN export those.

    As far as the Accounts export, I should clarify - I actually CAN export but ONLY if there is no assigned user. If there is an assigned user, no mater how many Accounts I check, I get a pop up that says "Please select at least 1 record to proceed".

    I have 100% verified this is the problem. Here is how - I had account X that had an assigned user. Tried to export - I get the pop up/no-go. I go in to edit it, clear the assigned user, save it. I select it and hit Export and voila! It lets me.

    This is weird. Obviously, I need to not have to remove the assigned users just to export. Any thoughts on this?

    Thanks!
    Mike

  7. #7
    sheetalM is offline Junior Member
    Join Date
    Apr 2008
    Posts
    1

    Default Re: Export to CSV Doesn't Work for Tasks

    Thanks heta,

    My problem is solved bcoz of your solution.
    Actually I am getting popup "Please select atleast one record",when I am selecting one or two records from list.
    Now it is solved.
    Thanks

  8. #8
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Export to CSV Doesn't Work for Tasks

    Quote Originally Posted by shelzmike
    As far as the Accounts export, I should clarify - I actually CAN export but ONLY if there is no assigned user. If there is an assigned user, no mater how many Accounts I check, I get a pop up that says "Please select at least 1 record to proceed".
    Hi Shelzmike -

    This is a bug that is getting fixed in an upcoming 5.0 patch. If you have the user or team column as the last column in the list view, then none of the list view functions (export, mass update, delete) works.

    The workaround is to move these clickable columns out of the final column position in the list view.

    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  9. #9
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: Export to CSV Doesn't Work for Tasks

    Quote Originally Posted by heta

    then i tried to change the code @ include/ListView/ListViewGeneric.tpl

    i changed

    $rowData[$params.id] to $rowData.id (on line no 99 for me.)

    then it worked fine..
    Hi Heta -

    I think we are already tracking this issue for the 5.0 Colombia patch. But to be sure that we track the fix you kindly provided, I have created bug 21108 which includes your fix.

    Thanks!
    Clint
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  10. #10
    shelzmike is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    17

    Default Re: Export to CSV Doesn't Work for Tasks

    Clint -

    Fantastic! I am just glad that it is a known issue and not something that I have done. These functions are not something that I need to use everyday, so I could just move the column out, do what I need to, then move them back. THAT I can deal with for now. Thanks everyone for the help I was staring to pull my hair out a bit! Have a good one.


    Mike

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2008-02-11, 01:40 PM
  2. export report only csv?
    By hoachen in forum General Discussion
    Replies: 1
    Last Post: 2006-12-10, 11:11 AM
  3. Export target-list as CSV
    By hheckner in forum General Discussion
    Replies: 0
    Last Post: 2006-12-04, 10:19 AM
  4. Replies: 0
    Last Post: 2006-06-22, 02:25 AM

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
  •