Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    CSV export separated by semicolon instead of comma

    Hello Team,

    I want to export data into csv file.

    Everything works fine, but I have items separated by comma in csv file - Here, I would like to have the output as mentioned below-

    Actual Data

    "Country full name","Super-region name","Region name"
    "Afghanistan","Asia","Southern Asia"
    "Albania","Europe","Southern Europe"

    Desired Output:

    "Country full name";"Super-region name";"Region name"
    "Afghanistan";"Asia";"Southern Asia"
    "Albania";"Europe";"Southern Europe"

    Code:

    final ListGrid grid = (ListGrid) getMember(1);
    DSRequest requestProperties = new DSRequest();
    requestProperties.setExportAs(ExportFormat.CSV);
    requestProperties.setOperationId(gridConfiguration.getFetchOperation());
    requestProperties.setExportFilename(getGridHeader().getGridName().getContents());
    String exportFooter = createExportFooter();
    requestProperties.setExportFooter(exportFooter);

    grid.exportData(requestProperties);

    I tried to find any doc/API about it but no success.

    We are using SmartClient version : v9.0p_2013-09-22/PowerEdition Deployment (built 2013-09-22)

    Please help me to achieve this.
    Last edited by mchoudhary; 26 Feb 2014, 04:43.

    #2
    See http://www.smartclient.com/smartgwte...lang.String%29.

    Comment


      #3
      Hi,

      Thanks a lot and this worked.

      Comment

      Working...
      X