Skip to content

Spreadsheets

The following sections describe how to use Spreadsheet in Scifeon. Spreadsheets are used to register, modify, and hold data in Scifeon.

In the ELN click + Section (1) and select Spreadsheet, then after that the spreadsheet is added to the ELN.

Our Spreadsheet section works just like a very basic excel.

We support the following basic features directly from the Spreadsheet header -

  1. Undo & Redo - The option to undo and redo recent actions.
  2. Text Decorations – Size, colors, position and text formatting.
  3. Cell Styling – Merging cells and adding borders.
  4. Cell Locking – Locking and unlocking of cells to ensure they cannot be accidentally edited.
  5. Cell Validation – Rules to validate cells and clearly mark if something is wrong.
  6. Cell Typing – Change cell type to Standard, Number, Percent, or Text.
  7. Decimal Point – Easily change decimal point position.
  8. Import Excel – Import excel sheet directly into the ELN.
  9. Export Excel – Export your ELN Spreadsheet to excel or CSV.
  10. Full Screen mode – Expand the Spreadsheet to fill your whole screen.
  11. Save – The Spreadsheet section will automatically save after ~10 seconds, but you can manually save as well.

Image1

A Spreadsheet that has unsaved data in it will have a yellow line in the left side. This a general way to tell a section has unsaved data. (1)

As in a Excel you can use the standard function like AVERAGE(), SUM(), COUNT() etc. (2)

You can also have multiple sheet (3), and all sheets are connected throughout the ELN.

Image2

It is possible to insert any data from the ELN into a Spreadsheet.

Here how to -

  1. Queries & Connections - Click the “Queries & Connections” button in the Spreadsheet toolbar.
  2. Configure table - A slide in modal will appear in the right side of the Spreadsheet.
  3. Set Table Start Cell - Select the cell from where the table should start from. You can either manually type this, or use the cell picker.
  4. Select an Entity Source - Click the “Select Entities” button.

Image3

  1. Select Entity type - Select desired type e.g Samples, Batches, Animals or Fermentations
  2. Select Step Input/Output - The step where your entities are/will be located.
  3. Save Source - Save the selected configurations.

Image4

  1. Overview of found Entities - Here a list of all found entities are shown.
  2. Select columns to show in Spreadsheet - Select the columns from your entity that you wish to appear in the Spreadsheet.
  3. Closing Table Configuration - Clicking a cell that is not part of the entity table will close the slide in modal.
  4. Opening Table Configuration - Clicking a cell that is part of an entity table will open the slide in modal with all set configurations.
  5. Deleting Table Configuration - You can delete the inserted table by using the trashcan in the bottom right corner of the slide in modal.
  6. Error Handling - If there is not enough space for your table it will appear as “#ERROR”. Ensure the whole table can fit in the Spreadsheet, and won’t override other data.

Image5

Extracting Results from the Spreadsheet into the ELN

Section titled “Extracting Results from the Spreadsheet into the ELN”

You can extract Result Values from the Spreadsheet that are saved as structured data in Scifeon.

To extract results you need to create a Save Results configuration. Here is how to -

  1. Create a Save Results configuration - Click the “Save Results” button in the Spreadsheet toolbar.
  2. Configure table - A slide in modal will appear in the right side of the Spreadsheet.
  3. Fill out relevant field - See the guide below on how to fill out configuration.
  4. See result values - When the configuration has all required information it will create Result Values that can be seen under the Spreadsheet section.
  5. Errors - If information can not be found in the table Result Values will not be created. Ensure all rows have required information for the configuration to read.
  6. Opening existing configurations - If you want to edit or delete an existing configuration, click the “Save Results” button for a list of existing configurations.
  7. Deleting a configuration - You can delete the configuration by using the trashcan in the bottom right corner of the slide in modal.

Image7

To extract results you make a configuration of what needs to be extracted. You will need to set the following information in the slide in modal -

  1. Extraction configuration name - A name to discern this configuration should you have multiple Result Values to be extracted.
  2. Start and end row - The rows where extraction of results will be considered. (If end is not static, you can set it very high)
  3. Result column - The column in the Spreadsheet where the result value is.
  4. Sample ID column - The column in the Spreadsheet where the SampleIDs are. Each Result Value must be related to a SampleID.
  5. Type column - The column in the Spreadsheet where the type of the Result Value can be found. (Direct input available)
  6. Unit column (optional) - The column where the Result Values unit is. (Direct input available)

Image6

Macros let you write JavaScript that reads and writes spreadsheet data in your ELN. They run in an isolated sandbox with a hard 10-second timeout, so an accidental infinite loop or a copy-pasted snippet that tries to call out to the internet will never freeze or compromise the app.

Managing macros

  1. Click the Macros button in the Spreadsheet toolbar.
  2. Click + Macro to create a new macro, give it a name and optionally a description.
  3. Write your JavaScript in the source editor. Two globals are available: context (spreadsheet API) and math (the mathjs library).
  4. Click Run inside the dialog to test the macro immediately against the live spreadsheet.
  5. Toggle Active to surface the macro as a click-to-run button in a dedicated toolbar row below the formula bar — visible to anyone who opens the spreadsheet.
  6. Click Save to persist your changes.

See the Spreadsheet Macros reference for the full API, common patterns, and error catalogue.