Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

$host does not have the method exportData

Avatar

Level 1

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

1 Accepted Solution

Avatar

Correct answer by
Level 1

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

View solution in original post

0 Replies

Avatar

Level 10

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

Avatar

Correct answer by
Level 1

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