Skip to Content
0

Problems with Excel export

Feb 16, 2017 at 09:33 AM

41

avatar image

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

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers