Buttons in ELNs with callback functions
There is a need for buttons in ELNs to trigger special functionality. Right now the workaround is to have a BoolEditQuantity and set it to true, click save, and then check in the normalizer and then execute the code. It would be better to directly link buttons with functions in the backend.
Usecases:
- Creating Samples in a Batch
Each sample is an archive entry. Usually when new samples are created they all have the same properties and will be grouped in a batch. One could specify the number of samples and then click a button which creates all archives. - Creating Samples and Processes
A button could be used to create processes for which no data exists based on templates and link them to the correct samples. - Perform complex normalization
I have a 500mb csv file with time resolved data. To have interactive graphs it make sense to group the data in 15 minutes intervals to reduce the data before moving it to the archive. I can do this in the normalizer, but then it would be triggered every time i click save. An extra button could only trigger this step when needed. - Performing mass renamings of quantities within multiple entries. Such actions could be shown in the 'upload' page when several entries have been chosen for performing the action on.
Buttons are helpful when some stuff should not be exceuted everytime something is saved. Or if stuff is created only once. They are a flexible tool to speed up the lab workflows for scientists.
Edited by Lauri Himanen