Announcement

Collapse
No announcement yet.

Advanced pack - > List Report-> Get CSV

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    You can select all result and then Action > Export

    Comment


    • #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


      • #4
        I will look.

        Comment


        • #5
          Will be fixed in the next update. Thank you.

          Comment


          • #6
            You can download the new 1.6.1 version. It should work ok now.

            Comment


            • #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


              • #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.

                Comment


                • #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


                  • #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

                    Comment


                    • #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


                      • #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


                        • #13
                          I don't understand what do you mean. maybe
                          $list = $this->getEntityManager()->getRepository('MyEntity')->order('createdAt', 'ASC')->where(array('status' => 'Hello'))->find();

                          Comment


                          • #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...
                            X