diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/StandardProfile.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/StandardProfile.js index d676f9258175c7d73ae3d76a10081ba51ecddae6..832ad5f191d3694e7638bd90f13572c87cc14e1c 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/StandardProfile.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/StandardProfile.js @@ -412,7 +412,10 @@ $.extend(StandardProfile.prototype, DefaultProfile.prototype, { repTitle += " (as saved when ordered)" } - var orderSummary = new DataGridController(repTitle, columns, [], null, getDataRows, null, false, "ORDER_SUMMARY", false, false, 30); + var orderSummary = new DataGridController(repTitle, columns, [], null, getDataRows, null, false, "ORDER_SUMMARY", false, { + fileFormat: 'XLS', + filePrefix: 'order-summary' + }, 30); orderSummary.init(orderSummaryContainer); var totalsByCurrencyContainer = $("<div>").append($("<br>")).append($("<legend>").append("Total:")); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/MainController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/MainController.js index c177e7d734a3456eb7fcd67d70732e5dc3027970..be423edc57001b9d6bc8af67a4b6d323a31df8c5 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/MainController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/controllers/MainController.js @@ -1542,7 +1542,10 @@ function MainController(profile) { } } - var dataGrid = new DataGridController(searchDomainLabel + " Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_" + searchDomainLabel, false, false, 90); + var dataGrid = new DataGridController(searchDomainLabel + " Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_" + searchDomainLabel, false, { + fileFormat: 'TSV', + filePrefix: 'search-' + searchDomainLabel + }, 90); localReference.currentView = dataGrid; var content = localReference._getBackwardsCompatibleMainContainer(); dataGrid.init(content); @@ -1670,7 +1673,10 @@ function MainController(profile) { } } - var dataGrid = new DataGridController(searchDomainLabel + " Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_" + searchDomainLabel, false, false, 90); + var dataGrid = new DataGridController(searchDomainLabel + " Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_" + searchDomainLabel, false, { + fileFormat: 'TSV', + filePrefix: 'search-' + searchDomainLabel + }, 90); localReference.currentView = dataGrid; var content = localReference._getBackwardsCompatibleMainContainer(); dataGrid.init(content); @@ -1843,7 +1849,10 @@ function MainController(profile) { mainController.changeView('showViewSamplePageFromPermId', e.data.permId); } - var dataGrid = new DataGridController("Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_OPENBIS", false, false, 90); + var dataGrid = new DataGridController("Search Results", columns, [], null, getDataList, rowClick, true, "SEARCH_OPENBIS", false, { + fileFormat: 'TSV', + filePrefix: 'search' + }, 90); localReference.currentView = dataGrid; var content = localReference._getBackwardsCompatibleMainContainer(); dataGrid.init(content); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js index 3855177276d9379ed6ca5b9f71f036c92bdfb4d7..e5173938364a9246aba7859e37516c70e86f499c 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/AdvancedSearch/AdvancedSearchView.js @@ -1292,7 +1292,10 @@ function AdvancedSearchView(advancedSearchController, advancedSearchModel) { var filterModes = isGlobalSearch ? [] : null var getDataRows = this._advancedSearchController.searchWithPagination(criteria, isGlobalSearch); - var dataGrid = new DataGridController(this.resultsTitle, this._filterColumns(columns), columnsLast, dynamicColumnsFunc, getDataRows, null, false, this.configKeyPrefix + this._advancedSearchModel.criteria.entityKind, isMultiselectable, false, 70, filterModes); + var dataGrid = new DataGridController(this.resultsTitle, this._filterColumns(columns), columnsLast, dynamicColumnsFunc, getDataRows, null, false, this.configKeyPrefix + this._advancedSearchModel.criteria.entityKind, isMultiselectable, { + fileFormat: 'TSV', + filePrefix: 'advanced-search' + }, 70, filterModes); return dataGrid; } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/DataGridController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/DataGridController.js index 445504a875650ef216c6a53507e6dcefa646dfa4..76204d03172cff1e2c48ac76b2a79c5bcaf488ae 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/DataGridController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/DataGridController.js @@ -23,8 +23,8 @@ function DataGridController( rowClickEventHandler, showAllColumns, configKey, - isMultiselectable, - isExportable, + multiselectable, + exportable, heightPercentage, filterModes ) { @@ -74,11 +74,10 @@ function DataGridController( loadRows: _this._loadRows, onSettingsChange: _this._onSettingsChange, onRowClick: rowClickEventHandler, - exportable: isExportable, - scheduleExport: _this._scheduleExport, - loadExported: _this._loadExported, + exportable: exportable, + onExportXLS: _this._onExportXLS, selectable: false, - multiselectable: isMultiselectable, + multiselectable: multiselectable, actions: _this._actions(extraOptions), }) ) @@ -279,10 +278,10 @@ function DataGridController( mainController.serverFacade.setSetting(configKey, elnGridSettingsStr) } - this._scheduleExport = function (parameters) { + this._onExportXLS = function (parameters) { let serviceParameters = { "method" : "export", - "file_name" : "test", + "file_name" : parameters.exportedFilePrefix, "ids" : parameters.exportedIds, "export_referred" : true, "export_properties" : parameters.exportedProperties, @@ -308,8 +307,6 @@ function DataGridController( }, true); } - this._loadExported = function () {} - this.refresh = function () { if (_this.controller) { _this.controller.load() diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/ExperimentDataGridUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/ExperimentDataGridUtil.js index e352201072e7de35951e7a88b0aece3f8861f452..94a1dd029d9a19c621073d149a232cb2565bb026 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/ExperimentDataGridUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/ExperimentDataGridUtil.js @@ -166,7 +166,10 @@ var ExperimentDataGridUtil = new function() { //Create and return a data grid controller var configKey = "EXPERIMENT_TABLE"; - var dataGridController = new DataGridController(null, columns, [], dynamicColumnsFunc, getDataList, rowClick, false, configKey, null, true, heightPercentage); + var dataGridController = new DataGridController(null, columns, [], dynamicColumnsFunc, getDataList, rowClick, false, configKey, null, { + fileFormat: 'XLS', + filePrefix: 'collections' + }, heightPercentage); dataGridController.setId("experiment-grid") return dataGridController; } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js index dbe49a7031a3619803af254689bc3ddc102317e7..c4a7d8de55fd2c4050a51462f9c911cc938d4bb3 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataGrid/SampleDataGridUtil.js @@ -350,7 +350,10 @@ var SampleDataGridUtil = new function() { configKey += "_" + optionalConfigPostKey; } - var dataGridController = new DataGridController(null, columnsFirst, columnsLast, dynamicColumnsFunc, getDataList, rowClick, false, configKey, isMultiselectable, true, heightPercentage); + var dataGridController = new DataGridController(null, columnsFirst, columnsLast, dynamicColumnsFunc, getDataList, rowClick, false, configKey, isMultiselectable, { + fileFormat: 'XLS', + filePrefix: 'objects' + }, heightPercentage); dataGridController.setId("sample-grid") return dataGridController; } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/HierarchyTable/HierarchyTableView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/HierarchyTable/HierarchyTableView.js index 9f803fa6aa3ffada48660fdf9f773af1bdb42169..4e2323dcf40c0f84b5c21d67171f500d5a2eb8b1 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/HierarchyTable/HierarchyTableView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/HierarchyTable/HierarchyTableView.js @@ -166,7 +166,10 @@ function HierarchyTableView(controller, model) { callback(filteredData); } - this._dataGrid = new DataGridController(null, columns, [], null, getDataList, null, false, this._model.entity["@type"] + "_HIERARCHY_TABLE", false, false, 90); + this._dataGrid = new DataGridController(null, columns, [], null, getDataList, null, false, this._model.entity["@type"] + "_HIERARCHY_TABLE", false, { + fileFormat: 'TSV', + filePrefix: 'hierarchy' + }, 90); this._dataGrid.init(this._container); this._container.prepend($("<legend>").append(" " + ELNDictionary.Sample + " Hierarchy")); } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/History/HistoryView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/History/HistoryView.js index 44c6b9d2886f6e570861aea19d68a7e3f1ca8ee0..947898b2f95cd0bb010a1471bc81fb8d287b5c9e 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/History/HistoryView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/History/HistoryView.js @@ -119,7 +119,10 @@ function HistoryView(controller, model) { null, false, this._model.entity["@type"] + "_HISTORY", - false, + { + fileFormat: 'TSV', + filePrefix: 'history' + }, false ) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js index 364e676d1d2b21c2cd8ff62c63434684ec279c5e..9772f292853818ff8b9f87fea956dc1dc62d496b 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/widgets/StorageListView.js @@ -145,7 +145,10 @@ function StorageListView(storageListController, storageListModel) { }}); } - this._dataGrid = new DataGridController(null, columns, [], null, getDataList, rowClick, false, "STORAGE_WIDGET", isMultiselectable, false, 60); + this._dataGrid = new DataGridController(null, columns, [], null, getDataList, rowClick, false, "STORAGE_WIDGET", isMultiselectable, { + fileFormat: 'TSV', + filePrefix: 'storage' + }, 60); var $dataGridContainer = $("<div>"); this._dataGrid.init($dataGridContainer, extraOptions); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/TrashManager/TrashManagerView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/TrashManager/TrashManagerView.js index a818988bf82fca8e5eff92be2ca89f61c38ab66f..3397db3a536c97cef469f6f9fa3aefdb6684c60b 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/TrashManager/TrashManagerView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/TrashManager/TrashManagerView.js @@ -209,7 +209,10 @@ function TrashManagerView(trashManagerController, trashManagerModel) { } var dataGridContainer = $("<div>").css("margin-top", "-10px").css("margin-left", "-10px"); - var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, true, "TRASHCAN_TABLE", false, false, 90); + var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, true, "TRASHCAN_TABLE", false, { + fileFormat: 'TSV', + filePrefix: 'trashcan' + }, 90); dataGrid.init(dataGridContainer); $containerColumn.append(dataGridContainer); } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserManager/UserManagerView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserManager/UserManagerView.js index 27c82ab75597241c3cb017e270a5d7258a3a3f61..04a3e9ab2fd4dd83c1a4b18285697ce715a4405c 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserManager/UserManagerView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/UserManager/UserManagerView.js @@ -124,7 +124,10 @@ function UserManagerView(userManagerController, userManagerModel) { callback(dataList); } - var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, false, "USER_MANAGER_TABLE", false, false, 90); + var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, false, "USER_MANAGER_TABLE", false, { + fileFormat: 'TSV', + filePrefix: 'users' + }, 90); dataGrid.setId("user-grid") dataGrid.init(dataGridContainer); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/VocabularyManager/VocabularyManagerView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/VocabularyManager/VocabularyManagerView.js index a42c417fc559f715d49fec1b52649bca69032dba..a273ba3afd7cba1c7db6ebfcb6809c9aba3edc93 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/VocabularyManager/VocabularyManagerView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/VocabularyManager/VocabularyManagerView.js @@ -83,7 +83,10 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod _this._showVocabulary(e.data.object) } - var dataGrid = new DataGridController(null, columns, [], null, getDataList, rowClick, true, "VOCABULARY_TABLE", false, true, 90); + var dataGrid = new DataGridController(null, columns, [], null, getDataList, rowClick, true, "VOCABULARY_TABLE", false, { + fileFormat: 'XLS', + filePrefix: 'vocabularies' + }, 90); dataGrid.setId("vocabulary-grid") dataGrid.init(this._dataGridContainer); @@ -125,7 +128,10 @@ function VocabularyManagerView(vocabularyManagerController, vocabularyManagerMod callback(dataList); } - var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, true, "VOCABULARY_TERMS_TABLE", false, false, 90); + var dataGrid = new DataGridController(null, columns, [], null, getDataList, null, true, "VOCABULARY_TERMS_TABLE", false, { + fileFormat: 'TSV', + filePrefix: 'vocabulary-terms-grid' + }, 90); dataGrid.setId("vocabulary-terms-table") dataGrid.init(this._dataGridContainer); diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/bbb-hub/snakemake-table.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/bbb-hub/snakemake-table.js index 3593dd1780c92112d9854d67767286900fb23358..bf424f4bf9245d497c46a8a6be91194b93df010a 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/bbb-hub/snakemake-table.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/plugins/bbb-hub/snakemake-table.js @@ -70,7 +70,10 @@ var SnakemakeTable = new function() { callback(dataList); }; - var dataGridController = new DataGridController(null, columns, [], null, getDataList, null, true, "ENTITY_TABLE_BBB", null, false, 90); + var dataGridController = new DataGridController(null, columns, [], null, getDataList, null, true, "ENTITY_TABLE_BBB", null, { + fileFormat: 'TSV', + filePrefix: 'entities' + }, 90); dataGridController.init(container); }