The only way I know to do this with files, is to use a trusted Function that is loaded as part of the client startup in the javascripts folder.
If your target files are available on a web server you can use app.launchURL without the trusted function.
To achieve the link, you can add a read only text field with any default text you like "Click here for drawing", etc.
In the mouseUp event for the field add your code:
FOR URL: app.launchURL("http://www.adobe.com/", true);
FOR LOCAL FILE: openDataFileP("file://C:/temp/MyFile.txt");
The local file requires the following Trusted Function:
// OPEN A FILE VIA URL
openDataFileP = app.trustedFunction(function (sURL) {
app.beginPriv();
try {
var nDoc = app.launchURL(sURL, true);
} catch (err) {
app.alert("Error: " + err);
}
app.endPriv();
});
Good Luck
Mark