In the table listing view for Analyses where results are entered directly for a individual sample, our lab is trying to add a feature to auto-populate every analysis on that sample with the data entered into the first row on a per-field basis (similar to how the AR Add form works).
I noticed there is an API function in senaite.app.listing called set_fields that seems like it is designed to do this very thing.
Does anyone have an example of implementing that function in a button, or know of a better solution to use? My ReactJS is still a bit weak and I’ve been in a rabbit hole of how the Promise object works.
Or would it be simpler to design it similar to the AR Add form copy button even though the fields are displayed as columns and not rows, and the function is indicated as needing refactoring?