Open PDF content in Adobe Reader

Hi guys,

Please pardon a complete newb… I found this great tool last week and have spent the weekend tweaking and adapting to suit my needs, which are -

I am using the Grid as a web front end to manage a series of documents (mainly PDF) so that my end user can search across five separate fields to find the PDF document they need and then click on the link and open it.

At the moment I can either open the file in the bottom half of the browser window or force it to open in a new tab, but what I would really like to do is for the PDF document to open in Adobe Reader. I am sure that this is do’able and probably relatively easily, but I am blowed if I can work out how to do it. I have searched the forum, but can’t find what I am looking for.

Any help gratefully received, thanks,

Nigel

You can open the pdf in a cell of a layout using attachURL() and giving a url to the pdf:

var u = "somepdf.pdf"
layout.cells("b").attachURL(u);