Hi,
Could some please help me with a solution?
Here's what currently runs on our server. An applications runs and does:
Create an unique folder
Copy a fillable, reader extended form into this folder
Put data in a XML-file (always same filename) and places that in the same folder
Open the PDF for the user to fill in the details.
Now, the change I want to make is to import the data from the XML file into the PDF. I used a button on the form using xfa.host.importData(). This fires up a browse-for-file-box so the user can select the correct xml-file. This works!
However, as the folder from where the PDF opens, is always a different one, the browse-for-file-box opens in the wrong folder. The user does see a XML-file, but that is from a different folder. So, what I wanted is the following:
The form opens
The PDF imports the data from the XML file automaticly, without user intervention
The user finalizes the form and saves it.
In short: How can I create a variable from the folderlocation where the pdf is opened, and merge that with the xml-filename?
Hopefully I than can use xfa.host.importData("filename.xml")
I hope someone can advise me! Thanks in advance!