Anyone know if there is a way to share reports with the public without having to log in? Ideally the QR code on the report would go to a unique URL that displays the report without logging in.
I’ve been asked to explore doing something similar (for sending test results to patients via SMS). I haven’t found a secure way of doing it directly with SENAITE but I am hoping to work around that with some scripting/automation. Bitwarden Send seemed to be exactly what I need to generate URLs for secure file transfer and has a convenient CLI for automation, if I can get it to work.
I hope you can get it working! I looked at it for about 7 seconds and it was too complicated for me
I am trying to replicate this functionality, which is pretty basic: Trustpointe Analytics LLC COA Verification System
For now, I’m probably just going to upload the report files separately until I can figure out a way to automate it. Maybe I can email the file to a script that does this for me…
Hi Josh,
Your request to make the generated PDF report link publicly accessible (without requiring a login) is possible by modifying the configure.zcml
file in Senaite Core.
To do this, navigate to the following directory:
bika/lims/browser/publish
within the Senaite Core (edge) folder, and update the following segment as shown:
<!-- Download View for AR Reports (PDFs) -->
<browser:page
for="*"
name="download_pdf"
class=".downloadview.DownloadView"
permission="zope.Public"
layer="bika.lims.interfaces.IBikaLIMS"
/>
Once this change is applied, the PDF report links will be publicly accessible without requiring authentication.
Let me know if you need any further assistance!
Best regards,
Haider Alwaqfi
Haideralwaqfi@gmail.com