diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementEditTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementEditTemplate.java index 256f16104..300fc7748 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementEditTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementEditTemplate.java @@ -167,6 +167,7 @@ public byte[] getContent() { } var startIndex = 1; // start in row number 2 with index 1 as the header row has number 1 index 0 + var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0 int rowIndex = startIndex; for (NGSMeasurementEntry measurement : measurements) { Row row = getOrCreateRow(sheet, rowIndex); @@ -195,7 +196,7 @@ public byte[] getContent() { column.columnIndex(), startIndex, column.columnIndex(), - DEFAULT_GENERATED_ROW_COUNT - 1, + helperStopIndex, helper.exampleValue(), helper.description()) ); diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementRegisterTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementRegisterTemplate.java index edc91ddb9..f160f820e 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementRegisterTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/NGSMeasurementRegisterTemplate.java @@ -110,6 +110,7 @@ public byte[] getContent() { } var startIndex = 1; // start in row number 2 with index 1 as the header row has number 1 index 0 + var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0 // make sure to create the visible sheet first Sheet hiddenSheet = workbook.createSheet("hidden"); Name sequencingReadTypeArea = createOptionArea(hiddenSheet, @@ -128,7 +129,7 @@ public byte[] getContent() { column.columnIndex(), startIndex, column.columnIndex(), - DEFAULT_GENERATED_ROW_COUNT - 1, + helperStopIndex, helper.exampleValue(), helper.description())); } diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementEditTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementEditTemplate.java index 10af56e8c..e1391964b 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementEditTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementEditTemplate.java @@ -172,6 +172,7 @@ public byte[] getContent() { } var startIndex = 1; // start in row number 2 with index 1 skipping the header in the first row + var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0 var rowIndex = startIndex; for (ProteomicsMeasurementEntry pxpEntry : measurements) { @@ -199,7 +200,7 @@ public byte[] getContent() { column.columnIndex(), startIndex, column.columnIndex(), - DEFAULT_GENERATED_ROW_COUNT - 1, + helperStopIndex, helper.exampleValue(), helper.description()) ); diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementRegisterTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementRegisterTemplate.java index 7517e20a3..861e177fa 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementRegisterTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/measurement/ProteomicsMeasurementRegisterTemplate.java @@ -123,7 +123,7 @@ public byte[] getContent() { } var startIndex = 1; // start in row number 2 with index 1 skipping the header in the first row - + var helperStopIndex = 1; //stop in row number 2 with index 1 as the header row has number 1 index 0 // make sure to create the visible sheet first Sheet hiddenSheet = workbook.createSheet("hidden"); Name digestionMethodArea = createOptionArea(hiddenSheet, "Digestion Method", @@ -141,7 +141,7 @@ public byte[] getContent() { column.columnIndex(), startIndex, column.columnIndex(), - DEFAULT_GENERATED_ROW_COUNT - 1, + helperStopIndex, helper.exampleValue(), helper.description()) ); diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchRegistrationTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchRegistrationTemplate.java index 68a1815c7..251a6bb41 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchRegistrationTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchRegistrationTemplate.java @@ -119,6 +119,7 @@ public static XSSFWorkbook createRegistrationTemplate(List conditions, } var startIndex = 1; //start in the second row with index 1. + var helperStopIndex = 1; //stop in the second row with index 1 var hiddenSheet = workbook.createSheet("hidden"); Name analysisToBePerformedOptions = createOptionArea(hiddenSheet, "Analysis to be performed", @@ -165,7 +166,7 @@ public static XSSFWorkbook createRegistrationTemplate(List conditions, column.columnIndex(), startIndex, column.columnIndex(), - MAX_ROW_INDEX_TO, + helperStopIndex, helper.exampleValue(), helper.description()) ); diff --git a/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchUpdateTemplate.java b/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchUpdateTemplate.java index c865454e7..2dfdac985 100644 --- a/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchUpdateTemplate.java +++ b/user-interface/src/main/java/life/qbic/datamanager/templates/sample/SampleBatchUpdateTemplate.java @@ -105,6 +105,7 @@ public static XSSFWorkbook createUpdateTemplate(List samples, List samples, List