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
BedrockMission!

Learn More

View all

Sign in to view all badges

$host does not have the method exportData

Avatar

Avatar
Validate 1
Level 1
borncreations
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
borncreations
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
borncreations
Level 1

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
Validate 1
Level 1
borncreations
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
borncreations
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Affirm 1
View profile
borncreations
Level 1

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
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile

Avatar
Boost 50
MVP
_Bruce_Robertson
MVP

Likes

269 likes

Total Posts

1,782 posts

Correct Reply

372 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 250
Boost 25
View profile
_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