Announcement

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

    Export to Excel client-side

    I was hoping someone could help me out with the Export feature. I'm trying to export information from a grid to Excel. But, when I click my export button, nothing is being returned. I'm not seeing anything in my server logs, I'm not seeing anything in my network calls, and I'm not seeing anything in my front-end console logs. We are on SmartGWT 12.1

    Can anyone point me to where I could possibly get some feedback as to where my issue may be happening ?

    Here's my code:

    public void setupFab() {
    fab = new FloatingActionButton();
    fab.getFabMenu().getStyle().setBottom(16, Unit.PX);
    fab.getFabMenu().getStyle().setRight(16, Unit.PX);
    this.addChild(fab.getCanvas());

    fab.addItem("Export all", IconString.DOWNLOAD, new FabButtonHandler() {

    @Override
    public void handle() {

    DSRequest dsRequestProperties = new DSRequest(); {
    {
    dsRequestProperties.setExportAs((ExportFormat)EnumUtil.getEnum(ExportFormat.values(), "ooxml"));
    dsRequestProperties.setExportToClient(true);
    dsRequestProperties.setExportFilename("ScholarshipImportAmountConflicts.xlsx");
    dsRequestProperties.setExportDisplay(Boolean.TRUE ? ExportDisplay.WINDOW : ExportDisplay.DOWNLOAD);
    dsRequestProperties.setTimeout(60);
    }
    };
    scholarshipImportAmountConflictsGrid.exportClientData(dsRequestProperties);
    }
    });

    }

    #2
    Check your Developer Console. The only way this could happen is a client-side crash or similar problem.

    Comment

    Working...
    X