Hi guys,
My requirement is I designed a pdf form , and there is another pdf will attach into the pdf.I will add a button at the pdf form,when i click the button ,I want to open the attached pdf.
I use below javascript for this issue:
var oDoc = event.target;
var oAttachment = oDoc.dataObjects;
var oAttachmentName;
if (oAttachment != null) {
for (var i = 0; i < oAttachment.length; i++){
oAttachmentName = oAttachment[i].path;
if(oAttachmentName == "TEST.pdf"){
app.openDoc(oAttachmentName, this);
}
}
}
but app.openDoc just can open the external file,then I changed method,use app.openDataObject, and still not work.
Is there any way to resovle this issue????
thanks
this script looks familar ;-)
Is your attachment named "TEST.pdf" as described in my example?
radzmar
• LoveCycle Blog
Documents you need:
• LiveCycle Designer ES2 Docs