Announcement

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

  • svashi
    replied
    Hello Isomorphic,

    I am able to reproduce the first issue(related to cell formatting).
    In the showcase sample code - com.smartgwt.sample.showcase.client.dataintegration.java.others.FormattedExportSample
    I am using CellFormatter for "Qty" ListGridField and test it with two case:

    First case : Cell Formatter returning a string "1.5"

    ListGridField quantityField = new ListGridField("quantity","Qty");
    quantityField.setWidth(48);
    quantityField.setCellFormatter(new CellFormatter() {

    @Override
    public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
    return "1.5";
    }
    });
    In grid, it shows formatted "Qty" - "1.5"
    But has problem with export type - "XLS (Excel97)" and "XLSX (Excel2007/OOXML)"
    with "csv" , it is working fine.

    Second case : cnage the Cell Formatter and return a string "w1.5"

    ListGridField quantityField = new ListGridField("quantity","Qty");
    quantityField.setWidth(48);
    quantityField.setCellFormatter(new CellFormatter() {

    @Override
    public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
    return "w1.5";
    }
    });

    Now, it shows formatted "Qty" - "w1.5" in grid, and export type - "csv", "xls", "xlsx" as well.

    Formatting is different for grid and export if the formatted string only contains number .

    Could you please try to reproduce it? and provide a fix - if it is reproducible.

    Thanks in advance for your support.

    Regards,

    Sonia FormattedExportSample.java

    Leave a comment:


  • svashi
    replied
    Hello Isomorphic,

    Thanks for the fix for second problem.
    But in export file - the column titles are named as internal field names instead of field titles (localized)
    I have tried to set the PropertyIdentifier in sample code :
    dsRequestProperties.setExportPropertyIdentifier(PropertyIdentifier.TITLE);
    but it doesn't work.

    Thanks in advance.

    Regards,
    Sonia

    Leave a comment:


  • Isomorphic
    replied
    We were not able to reproduce the first issue in 5.0 either, so please try again using the latest code of this version. Also, the fix for the 2nd issue has been backported to 5.0. So, please try the next nightly build, dated May 23.

    Regards
    Isomorphic Software

    Leave a comment:


  • svashi
    replied
    Hello Isomorphic,

    I forgot to mention, but we use version 5.0 -p<20171110>.
    Could you port back the solution for second problem to 5.0 as well?
    Can you reproduce the first issue for version - 5.0? If it is reproducible, Could you please also provide a fix for it?

    Thanks in advance.

    Regards,
    Sonia

    Leave a comment:


  • Isomorphic
    replied
    We were not able to reproduce your first issue. Please, try again with a more recent build. Moreover, we've applied a fix to solve the 2nd issue. So, please try the next nightly build, dated May 22.

    Regards
    Isomorphic Software

    Leave a comment:

Working...
X