I have a XFA form created in LiveCycle (not by me)... and I've created a custom menu item that exports a .xml file upon clicking.
I've created a second menu item that imports a specific xml file into the report, however it is returning "An Internal error occurred" BUT it also properly imports the data too.
1) Can you spot why I'm getting an error using the code below (import.js)?
2) Is it possible for Acrobat to "wait for" an xml file to be created on the desktop before importing automatically. Ideally I'd only create one menu item which performs two functions: exports the xml file and then WAITS until a specifically-named .xml file appears in a given directory, before automatically importing it into the form.
Thanks a lot.
1) menu.js (creates two menu items, Export and Import).