ICEfaces
  1. ICEfaces
  2. ICE-9235

ace:dataExporter - Support exporting summary rows defined in an ace:row tag

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-3.2.0.GA, 3.3
    • Fix Version/s: EE-3.3.0.GA, 4.0.BETA, 4.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P2
    • Salesforce Case Reference:

      Description

      Feature Request: Add support for exporting the contents of a summary grouped row defined in an ace:row tag.
      1. cars.pdf
        4 kB
        Arran Mccullough
      2. dataExporter.xhtml
        5 kB
        Arran Mccullough
      3. DataTableSort.java
        8 kB
        Arran Mccullough
      1. screenie.jpg
        147 kB

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Salesforce Case Reference 5007000000T6vrmAAB
        Hide
        Arran Mccullough added a comment -

        Added files that show:

        • Modified showcase code to show how the table is defined.
        • Sample output of current code base.
        Show
        Arran Mccullough added a comment - Added files that show: Modified showcase code to show how the table is defined. Sample output of current code base.
        Arran Mccullough made changes -
        Attachment cars.pdf [ 15855 ]
        Attachment dataExporter.xhtml [ 15856 ]
        Attachment DataTableSort.java [ 15857 ]
        Attachment screenie.jpg [ 15858 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Fix Version/s 3.4 [ 10770 ]
        Assignee Priority P2 [ 10011 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Fix Version/s 3.4 [ 10770 ]
        Assignee Priority P2 [ 10011 ]
        Ken Fyten made changes -
        Assignee Arturo Zambrano [ artzambrano ]
        Fix Version/s EE-3.3.0.GA [ 10572 ]
        Fix Version/s 3.4 [ 10770 ]
        Ken Fyten made changes -
        Assignee Priority P2 [ 10011 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #35127 Thu May 16 09:41:30 MDT 2013 art.zambrano ICE-9235 added support for exporting conditional ace:row's
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/XMLExporter.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/PDFExporter.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/CSVExporter.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/ExcelExporter.java
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/Exporter.java
        Hide
        Arturo Zambrano added a comment -

        Committed improvement at revision 35127.

        Added support for exporting conditional rows to each format.

        As in previous cases, when a cell in a conditional row spans multiple columns, it is exported by repeating such cell for each column it spans. I tried to make the PDF format export such cells actually spanning multiple rows, as they look on the browser. However, the iText library doesn't have the notion of rendering arbitrary cells spanning multiple columns. All cells in a PDF table are the exact same size, and all rows are assumed to have the exact same number of columns/cells. The API has no such thing as an 'addRow()' method, you just call 'addCell()' and iText moves to the next row/line when the current row reaches the maximum number of cells for that table. The test I made consisted in adding an inner table with relative widths, so a column could be wider than others, but what happened was that such inner table was rendered completely inside a cell of the main table, and didn't take the full row's space, as intended. If we want to support cells that span multiple columns in arbitrary rows, we would have to change our entire PDF rendering strategy. Instead of using the PdfTable object from iText, we would simply draw the table by ourselves by rendering rectangles of whatever size we want and positioning them at any point we want, and thus build the table by ourselves.

        Show
        Arturo Zambrano added a comment - Committed improvement at revision 35127. Added support for exporting conditional rows to each format. As in previous cases, when a cell in a conditional row spans multiple columns, it is exported by repeating such cell for each column it spans. I tried to make the PDF format export such cells actually spanning multiple rows, as they look on the browser. However, the iText library doesn't have the notion of rendering arbitrary cells spanning multiple columns. All cells in a PDF table are the exact same size, and all rows are assumed to have the exact same number of columns/cells. The API has no such thing as an 'addRow()' method, you just call 'addCell()' and iText moves to the next row/line when the current row reaches the maximum number of cells for that table. The test I made consisted in adding an inner table with relative widths, so a column could be wider than others, but what happened was that such inner table was rendered completely inside a cell of the main table, and didn't take the full row's space, as intended. If we want to support cells that span multiple columns in arbitrary rows, we would have to change our entire PDF rendering strategy. Instead of using the PdfTable object from iText, we would simply draw the table by ourselves by rendering rectangles of whatever size we want and positioning them at any point we want, and thus build the table by ourselves.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11382 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: