protected void doSave() throws Exception { for (XlsWorkbookSourceCodeModule workbook : modifiedWorkbooks) { workbook.save(); } }
protected void doSave() throws Exception { for(XlsWorkbookSourceCodeModule workbook : modifiedWorkbooks){ workbook.save(); } }
protected void doSave() throws Exception { for (XlsWorkbookSourceCodeModule workbook : modifiedWorkbooks) { workbook.save(); } }
public void save() throws CreateTableException { try { gridModel.getSheetSource().getWorkbookSource().save(); } catch (IOException e) { throw new CreateTableException("Could not save table. " + e.getMessage()); } }
public void saveSearch(OpenLSavedSearch search) throws Exception { XlsWorkbookSourceCodeModule module = getWorkbookNodes()[0].getWorkbookSourceCodeModule(); if (module != null) { IExporter iExporter = XlsSheetGridHelper.createExporter(module); iExporter.persist(search); module.save(); reset(ReloadType.SINGLE); } }
/** * @return New table id on the sheet where it was saved. It is needed for tables that were moved * to new place during adding new rows and columns on editing. We need to know new destination of the table. */ public synchronized String save() throws IOException { XlsSheetGridModel xlsgrid = (XlsSheetGridModel) gridTable.getGrid(); xlsgrid.getSheetSource().getWorkbookSource().save(); actions = new UndoableActions(); String uri = getOriginalGridTable().getUri(); return TableUtils.makeTableId(uri); }
/** * @return New table id on the sheet where it was saved. It is needed for tables that were moved * to new place during adding new rows and columns on editing. We need to know new destination of the table. * @throws IOException */ public synchronized String save() throws IOException { XlsSheetGridModel xlsgrid = (XlsSheetGridModel) gridTable.getGrid(); xlsgrid.getSheetSource().getWorkbookSource().save(); actions = new UndoableActions(); String uri = getOriginalGridTable().getUri(); return TableUtils.makeTableId(uri); }
public String removeTable() throws Throwable { try { final WebStudio studio = WebStudioUtils.getWebStudio(); IGridTable gridTable = table.getGridTable(IXlsTableNames.VIEW_DEVELOPER); new TableServiceImpl().removeTable(gridTable); XlsSheetGridModel sheetModel = (XlsSheetGridModel) gridTable.getGrid(); sheetModel.getSheetSource().getWorkbookSource().save(); studio.compile(); RecentlyVisitedTables visitedTables = studio.getModel().getRecentlyVisitedTables(); visitedTables.remove(table); } catch (Exception e) { throw e.getCause(); } return null; }
public String removeTable() throws Throwable { try { final WebStudio studio = WebStudioUtils.getWebStudio(); IGridTable gridTable = table.getGridTable(IXlsTableNames.VIEW_DEVELOPER); gridTable.edit(); new TableServiceImpl().removeTable(gridTable); XlsSheetGridModel sheetModel = (XlsSheetGridModel) gridTable.getGrid(); sheetModel.getSheetSource().getWorkbookSource().save(); gridTable.stopEditing(); FacesUtils.removeSessionParam(org.openl.rules.tableeditor.util.Constants.TABLE_EDITOR_MODEL_NAME); studio.compile(); RecentlyVisitedTables visitedTables = studio.getModel().getRecentlyVisitedTables(); visitedTables.remove(table); } catch (Exception e) { throw e.getCause(); } return null; }