Skip to Content
avatar image
Former Member

Problems with Excel export

Hi There

I have some problems with the export function. I wrote a code (see below) that should export the excel if the user has selectd the tabstrip (or is on the tabstrip). It works only for GWP. If the user is for example on the tabstrip MOBILE it takes the export from the GWP.

I don`t understand why.

Can someone help me?

code:

if (TABSTRIP_2.getSelectedTab()== "TAB_UEBERSICHT" && DS_UEBERSICHT_TAB.isResultSetEmpty()== false) { APPLICATION.export(ExportType.EXCEL_xlsx, [ UEBERSICHT_CROSSTAB ]); } else if (TABSTRIP_2.getSelectedTab()== "TAB_OKST" && DS_OKST.isResultSetEmpty()== false) { APPLICATION.export(ExportType.EXCEL_xlsx, [ OKST_CROSSTAB ]); } else if (TABSTRIP_2.getSelectedTab()== "TAB_GWP" && DS_GWP_TAB.isResultSetEmpty()== false) { if (DETAIL_CROSSTAB.isVisible()== true) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DETAIL_CROSSTAB ]); } else { APPLICATION.export(ExportType.EXCEL_xlsx, [ GWP_CROSSTAB ]); } } else if (TABSTRIP_2.getSelectedTab()== "TAB_MOBILE" && DS_MOBILE_TAB.isResultSetEmpty()== false) { if (DETAIL_CROSSTAB.isVisible()== true) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DETAIL_CROSSTAB ]); } else { APPLICATION.export(ExportType.EXCEL_xlsx, [ MOBILE_CROSSTAB ]); } } else if (TABSTRIP_2.getSelectedTab()== "TAB_FAHRZEUGE" && DS_FAHRZEUGE_TAB.isResultSetEmpty()== false) { if (DETAIL_CROSSTAB.isVisible()== true) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DETAIL_CROSSTAB ]); } else { APPLICATION.export(ExportType.EXCEL_xlsx, [ FZ_CROSSTAB ]); } } else if (TABSTRIP_2.getSelectedTab()== "TAB_SBB" && DS_SBB_TAB.isResultSetEmpty()== false) { if (DETAIL_CROSSTAB.isVisible()== true) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DETAIL_CROSSTAB ]); } else { APPLICATION.export(ExportType.EXCEL_xlsx, [ SBB_CROSSTAB ]); } } else if (TABSTRIP_2.getSelectedTab()== "TAB_KS7" && DS_KS7_TAB.isResultSetEmpty()== false) { if (DETAIL_CROSSTAB.isVisible()== true) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DETAIL_CROSSTAB ]); } else { APPLICATION.export(ExportType.EXCEL_xlsx, [ KS7_CROSSTAB ]); } } else if (TABSTRIP_2.getSelectedTab()== "TAB_DIENSTGERAETE" && DS_DIENSTGERAETE_TAB.isResultSetEmpty()== false) { APPLICATION.export(ExportType.EXCEL_xlsx, [ DG_CROSSTAB ]); } else { TEXT_KEINE_DATEN_VORHANDEN.setVisible(true); TEXT_KEINE_DATEN_VORHANDEN.setCSSClass("errortext"); TIMER_POPUP_KEINE_DATEN_VORHANDEN.start(); }

Thx, Jaime

Add comment
10|10000 characters needed characters exceeded

  • Hi Jaime - what is GWP? Your production box? Maybe you could upload screen shots using the image icon? Also please share the version of Design Studio you are using.

  • Get RSS Feed

0 Answers