$host does not have the method exportData

Avatar

Avatar

borncreations

Avatar

borncreations

borncreations

10-09-2018

Hi there;

I am trying to find ways to debug javascript inside an Adobe XML form. For this I like to to save the data xml using the command

xfa.host.exportData("",0);

This results in an error "$host does not have the method exportData". I have tried the same using the messageBox method with the same result. The Intellisense recognises the method though.

Currently the code is the initialize event, but I also tried the docReady event with the same result.

Any help would be greatly appreciated.

BTW I am using LifeCycle ES4, downloaded from the SAP SoftwareCenter.

Thanks

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

borncreations

Avatar

borncreations

borncreations

11-09-2018

Thanks Bruce,

The Export Data option is not available to me (at least I can't find it) in the PDF Preview.I found the solution (by accident) though. The issue was that the preview was using the PDF format. I have switched this to Dynamic XML Form and it is working now. This was under Form Properties->Preview

Regards

Thomas

Answers (1)

Answers (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

371

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

371
_Bruce_Robertson
MVP

11-09-2018

Hi Thomas,

I don't know why that command doesn't work for you, works fine for me.

But if you are just after the XML, in Acrobat you can do Edit ... Form Options ... Export Data

Regards

Bruce