Advanced pack - > List Report-> Get CSV

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • info@jaguarsoft.com
    Member
    • Apr 2015
    • 35

    Advanced pack - > List Report-> Get CSV

    Hi There,

    I need to export to CSV List Report . But there is no link 'Get CSV' like Grid Report.
    Is there any reason not to export List report ?

    Action-Export to CSV not useful, export all the columns..:-(

    As far as I can see, EntryPoint->ReportAsCSV.php can support list Repost result , How can I add Get CSV forList Repor Result Set?

    thnx & rgds

    Selcuk
  • yuri
    Member
    • Mar 2014
    • 8467

    #2
    You can select all result and then Action > Export
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • info@jaguarsoft.com
      Member
      • Apr 2015
      • 35

      #3
      Hi, I know but I get all the DB columns in that case and also gets only diso-played (20) records..

      take it easy

      Comment

      • yuri
        Member
        • Mar 2014
        • 8467

        #4
        I will look.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • yuri
          Member
          • Mar 2014
          • 8467

          #5
          Will be fixed in the next update. Thank you.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8467

            #6
            You can download the new 1.6.1 version. It should work ok now.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • info@jaguarsoft.com
              Member
              • Apr 2015
              • 35

              #7
              Hi, Thanks for quick(est) response, but it looks same, I have Espo 3.7.0 & Adv 1.6.1, I rebuilt , clear cache(s) etc. It gets all columns and first 20 for Action-Export,
              There is no Get CSV for List Report , FYI..

              Comment

              • yuri
                Member
                • Mar 2014
                • 8467

                #8
                I just tested and it worked fine.

                Select All result (from checkbox, not all shown cheboxes). And export. It exported to me more than 20 records.
                Last edited by yuri; 09-30-2015, 07:03 AM.
                If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                Comment

                • info@jaguarsoft.com
                  Member
                  • Apr 2015
                  • 35

                  #9
                  Yes, I see hidden down arrow now, :-) , but still gets all DB columns not displayed cols.! am I missing something?
                  And also I have unicode problem on csv , is there any solved this issue ?

                  cheers,

                  Selcuk

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8467

                    #10
                    It is designed such a way so it will export all columns.
                    Try to re-save exported fine in needed encoding. It should always export in UTF-8
                    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                    Comment

                    • info@jaguarsoft.com
                      Member
                      • Apr 2015
                      • 35

                      #11
                      Hi,
                      For excel UTF-8 Iproblem , I added Excel DOM to Espo/EntryPoints/Download.php as follows, Now Excel display Int. chars corerctly.. Just For Info.. ob_clean();
                      flush();
                      //***
                      if ($type === 'text/csv') echo"\xEF\xBB\xBF"; //selcuk Excel BOM for Windows

                      readfile($fileName);
                      exit;


                      Comment

                      • info@jaguarsoft.com
                        Member
                        • Apr 2015
                        • 35

                        #12
                        For Column Filtering I try to get app->getContainer()->get('layout')->get($MyEntity,'list');
                        So could you give me some tip pls, How can I access the list Layout in Espo/Services/Record.php. ?
                        this->????->get($MyEntitiy,'list') or how can I get the container for $this in Record.php
                        thanks in advance

                        Selcuk

                        Comment

                        • yuri
                          Member
                          • Mar 2014
                          • 8467

                          #13
                          I don't understand what do you mean. maybe
                          $list = $this->getEntityManager()->getRepository('MyEntity')->order('createdAt', 'ASC')->where(array('status' => 'Hello'))->find();
                          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                          Comment

                          • info@jaguarsoft.com
                            Member
                            • Apr 2015
                            • 35

                            #14
                            Newer mind.! Igot it. I was trying to get list view selected columns for entity to filter CSV cols. I added container as injection. And then I get access to container - layout - list
                            Now I filter list view columns only. I added follwoiıng to Record.php now everything is ok. thanks. //selcuk get only my fields in CSV
                            if (!in_array($field, $fieldsToInclude)) {
                            continue;
                            }

                            Comment

                            Working...