ICEfaces
  1. ICEfaces
  2. ICE-9316

ace:dataExporter - Selected rows of nested dataTable not exported

    Details

    • Type: Bug Bug
    • 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:
      P1
    • Salesforce Case Reference:

      Description

      When using a custom OuterTableCSVExporter to export a nested dataTable and only exporting the selected rows, the rows selected in the nested dataTable are not exported.

      The only way they are exported is if the parent or outer row is selected. If the nested rows are selected only then nothing is exported.
      1. Case12005Example.zip
        22 kB
        Arran Mccullough
      2. Case12005ExampleWAR.zip
        9.04 MB
        Arran Mccullough

        Activity

        Hide
        Arran Mccullough added a comment -

        Attached test case that shows the issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • Expand a row in the parent table.
        • Select a row or two in the nested table.
        • Click the export button, in the exported file, no rows were exported.
        Show
        Arran Mccullough added a comment - Attached test case that shows the issue. Steps: Load welcomeICEfaces.jsf Expand a row in the parent table. Select a row or two in the nested table. Click the export button, in the exported file, no rows were exported.
        Hide
        Ken Fyten added a comment -

        Seems like they want it so that whatever the lowest level selected rows are in the hierarchy, it will automatically include the parent level rows in the export as well, without having to explicitly select those as well. ?

        Show
        Ken Fyten added a comment - Seems like they want it so that whatever the lowest level selected rows are in the hierarchy, it will automatically include the parent level rows in the export as well, without having to explicitly select those as well. ?
        Hide
        Arturo Zambrano added a comment - - edited

        Committed fix at revision 35969 to the trunk and at revision 35970 to the 3.3 EE tag.

        The fix consists in going through the inner tables, looking fro selected rows, even if the parent row is not selected.

        At the moment, only the inner selected rows will be exported if they are selected, without also exporting the parent row by itself (the parent row's columns are already prepended to the inner rows). If they require to export the parent row by itself as well, it would be a quick fix.

        Show
        Arturo Zambrano added a comment - - edited Committed fix at revision 35969 to the trunk and at revision 35970 to the 3.3 EE tag. The fix consists in going through the inner tables, looking fro selected rows, even if the parent row is not selected. At the moment, only the inner selected rows will be exported if they are selected, without also exporting the parent row by itself (the parent row's columns are already prepended to the inner rows). If they require to export the parent row by itself as well, it would be a quick fix.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: