Internal error when using doc.importXFAData


i have xfa form created in livecycle (not me)... , i've created custom menu item exports .xml file upon clicking.

 

i've created second menu item imports specific xml file report, returning "an internal error occurred"  imports data too.

 

there 3 folder level trusted javascript functions being used in order this. have 2 specific questions:

 

1) can spot why i'm getting error using code below (import.js)?

 

2) possible acrobat "wait for" xml file created on desktop before importing automatically. ideally i'd create 1 menu item performs 2 functions: exports xml file , waits until specifically-named .xml file appears in given directory, before automatically importing form.

 

thanks lot.

 

code:

 

1) menu.js (creates 2 menu items, export , import).

 

app.addmenuitem({cname:"export", cparent:"edit", cexec:"event.target.mytrustfunct(event.target)"})

app.addmenuitem({cname:"import", cparent:"edit", cexec:"event.target.mytrustfuncttwo(event.target)"})

 

2) export.js (working without errors)

 

var mytrustfunct = app.trustedfunction(function(doc)

{

     app.beginpriv();

        doc.exportxfadata({

          cpath:"/c/users/me/desktop/savedform.xml",

   bcopy: true,

          bprompttooverwrite: false,

          bxdp:false

                  });

     app.endpriv();

     return;

});

 

 

3) import.js (causing error despite successful import)

 

var mytrustfuncttwo = app.trustedfunction(function(doc)

{

     app.beginpriv();

  doc.importxfadata({

          cpath:"/c/users/me/desktop/filled_in.xml"

                  });

     app.endpriv();

});

bump.... issue occurs on windows 7 64-bit machine running acrobat pro 11.0. it runs fine on xp acrobat standard 11.0.

 

what issue?



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

after effects warning: unable to create drawing surface

Maximum number of authorizations reached!