- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I followed your link and tried the code, but it doesn't save. Here's what I have
//This is the trusted file in Acrobat>javascript
mySaveAsName = app.trustPropagatorFunction( function ( myDoc, path )
{
app.beginPriv();
var myDoc = event.target;
return retn = myDoc.saveAs(path);
app.endPriv();
});
myTrustedSpecialTaskFunc100 = app.trustedFunction( function ( myDoc, path )
{
app.beginPriv();
var a = event.target.xfa.resolveNode("topmostSubform[0].Page1[0].Last_Name[0]");
var av = a.rawValue;
var g = "/c/HSSSave/" + av + ".pdf"
var retn = mySaveAsName(myDoc, g);
app.endPriv();
return retn;
});
//Button on click
----- topmostSubform.Page9.PrintButton1::click: - (JavaScript, client) -----------------------------
//this line was already in the XFA form and does work
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
//calls trusted function in MySaveAsPO.js folder-level script
event.target.myTrustedSpecialTaskFunc100(event.target);
Views
Replies
Total Likes