Export with DATABOX

I would like to use Senaite Databox to export the results of some samples. When I add a column for analyses, it only shows the object names. Is it possible to use the code field to extract the actual results, or would it be better to use an advanced query?

Is there another method to export the results of specific samples?

Thanks,

Núria

1 Like

Hi @nurs,

Create a Databox that seaches for Analyses and fetch the required fields from the parent samples.

Otherwise you would have to do an expression, e.g.

",".join(map(lambda x: x.getKeyword() for x in context.getAnalyses(full_objects=True)))

Best regards,

Ramon

2 Likes

Thanks a lot, now it works!

Núria

2 Likes