Home > Forum > Tips&Tricks > Open an attachment directly out of a report (V2025)

Open an attachment directly out of a report (V2025)
0

Hi there.

I'm wondering if (and how) it is possible to open an attachment directly from a report (e.g. via a link column) without the need to enter the form?

Kind regards,
Klaus

MVP
In reply to: Klaus Seidler

Hi Maksymilian,

that is great! Thank you!

Do you have a lean idea how I get the dynamic Attachment ID "lean" into this formula?

Use that as calculated formula, if you have some rules about what attachment should be displayed, then adjust it according to you'r needs.
This will just return first attachment.

ATT_Attribute1 stores categories if you are using them.

(
SELECT TOP 1
CONCAT('link:https://webcondev/attachments/db/1/preview/', ATT_ID, '?hash=0&isnewwindow=true;displayname:Open Attachment;target:_blank;onclick:return') AS url
FROM
WFDataAttachmets
WHERE
ATT_WFDID = wfelems.WFD_ID
)