Pass variable via div tag

I want to pass a variable (file-name & path) to a div-Tag (that shows a pdf flip page).

The Syntax to call is:

How do i dynamically replace “test.pdf” with the server connect result, in my case: {{detail.data.details[0].file}}

Just replacing doesn’t work - in that case the whole string is sent to the javascript, but it isn’t interpreted (PDFFlip reply: {{detail.data.details[0].file}} - File not found)

Greets, Andreas

Might need to add the path before the filename “http://youtsite.com/” +{{detail.data.details[0].file}}