ICEfaces
  1. ICEfaces
  2. ICE-4289

Selectively Include DataTable columns in DataExporter

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2-RC1, 1.8.2
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Exclude DataTable columns + DataExporter

      Description

      There should be a way to exclude DataTable columns in DataExporter

        Activity

        Adnan Durrani created issue -
        Adnan Durrani made changes -
        Field Original Value New Value
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Salesforce Case []
        Fix Version/s 1.8.2 [ 10190 ]
        Affects [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial]
        Affects Version/s 1.8.1 [ 10170 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #19183 Thu Aug 20 22:23:20 MDT 2009 adnan.durrani Fix for ICE-4289 (Exclude DataTable columns in DataExporter)
        New "includeColumns" attribute added, which takes comma separated column indexes. Which lets you specify the order and # of columns to be added to the generated output.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/component-metadata/src/main/resources/conf/ice_cust_properties/cust-dataExporter-props.xml
        Commit graph MODIFY /icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/dataexporter/DataExporter.java
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Adnan Durrani added a comment -

        new attribute added to the dataExporter component named as "includeColumns", Which lets you specify the order and # of columns to be added to the generated output.

        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
        Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml
        Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java
        Completed: At revision: 19183

        Show
        Adnan Durrani added a comment - new attribute added to the dataExporter component named as "includeColumns", Which lets you specify the order and # of columns to be added to the generated output. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\ice_cust_properties\cust-dataExporter-props.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\dataexporter\DataExporter.java Completed: At revision: 19183
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Adnan Durrani added a comment -

        How to use it?
        It takes comma separated column indexes. Let say if there are 6 columns in the table and you want to add only 1st, 4th and 6th column to the generated output, the code snippet would look like this:
        <ice:dataExporter includeColumns="0,3,5"... >

        The column order of the above example can be changed a well:
        <ice:dataExporter includeColumns="5,0,3"... >

        By default all columns will be included to the output in the default order.

        Note: index is 0 based.

        Show
        Adnan Durrani added a comment - How to use it? It takes comma separated column indexes. Let say if there are 6 columns in the table and you want to add only 1st, 4th and 6th column to the generated output, the code snippet would look like this: <ice:dataExporter includeColumns="0,3,5"... > The column order of the above example can be changed a well: <ice:dataExporter includeColumns="5,0,3"... > By default all columns will be included to the output in the default order. Note: index is 0 based.
        Hide
        Joanne Bai added a comment -

        Tested on ICEfaces trunk 19184 + Tomcat6.0

        • verified with success on FF3.5, Opera9.64
        • testing on IE is blocking by ICE-4223. But if saving the exported file to the correct type (excel in the test app), file also contains correct/expected data.

        Test app added to repo\qa\trunk\Regression\ICE-4289

        Show
        Joanne Bai added a comment - Tested on ICEfaces trunk 19184 + Tomcat6.0 verified with success on FF3.5, Opera9.64 testing on IE is blocking by ICE-4223 . But if saving the exported file to the correct type (excel in the test app), file also contains correct/expected data. Test app added to repo\qa\trunk\Regression\ ICE-4289
        Ken Fyten made changes -
        Fix Version/s 1.8.2-RC1 [ 10210 ]
        Ken Fyten made changes -
        Summary Exclude DataTable columns in DataExporter Selectively Include DataTable columns in DataExporter
        Salesforce Case []
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #20024 Fri Dec 18 11:36:35 MST 2009 adnan.durrani 1.8.2EE DataExporter changes moved to Compat DataExporter towards ICE-4481. The changes include the fix of following JIRAs ICE-4484, ICE-4390, ICE-4660, ICE-4223, ICE-4823, ICE-4836, ICE-4837, ICE-4764, ICE-4730, ICE-4844, ICE-4289, ICE-4826, ICE-4863, ICE-4934, ICE-4955
        Files Changed
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/component-metadata/src/main/resources/conf/ice_cust_properties/cust-dataExporter-props.xml
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/resources/META-INF/resources/ice-extras.js
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/WEB-INF/includes/examples/custom/dataTable-dataExporter.xhtml
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/dataexporter/DataExporter.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/dataexporter/DataExporterRenderer.java
        Commit graph MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/java/com/icesoft/faces/util/CoreUtils.java
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Adnan Durrani
          • Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: