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

importData works before enabling but not after

Avatar

Avatar
Give Back
Level 1
JLNdev
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Give Back
Level 1
JLNdev
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
Applaud 5
View profile
JLNdev
Level 1

30-03-2017

Hello,

I've done some pretty thorough searches, and I can only find this problem listed as a side note--nothing that directly addresses it.

I have created a PDF form in LiveCycle Designer ES4 and it includes an import button which uses this code:

xfa.host.importData("");

Note: The import button works great in Acrobat DC Pro prior to enabling.  However, once I enable it as a Reader Extended PDF, the enable button completely stops working.

The error in the JavaScript Debugger dialogue reads like so;

NotAllowedError: Security settings prevent access to this property or method.

Doc.importXFAData:1:XFA:form1[0]:page1-OnePageProfileSection[0]:Header[0]:FormControls[0]:Button-Import[0]:mouseUp

Just to be clear: I know the enabling feature won't be available in Reader, enabled or otherwise, and that is not my goal.  This is specifically a problem with Acrobat Pro DC.  Why would enabling the PDF cause the import button to stop working in Pro DC?  My users will need to both import data and be able to save the content they import or enter into the form, so I can't sacrifice enabling for the import feature. We really need both to work.

I am working in a Windows 7 Enterprise environment and we don't have LC server yet.  Just LC Designer and Acrobat Pro DC (2015.023.20070).

Thanks in advance for your assistance!

JLN

Replies

Avatar

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Level 4
George_Johnson
Level 4

Likes

21 likes

Total Posts

234 posts

Correct Reply

27 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
George_Johnson
Level 4

31-03-2017

If you Reader-enabled the document with Acrobat, the form data import/export usage right is not included. Since it's not, you won't be able to use the importData JavaScript method, either with Acrobat or Reader. You'd have to add the usage right via LiveCycle Reader Extensions (or whatever it's called nowadays) for it to work.

Avatar

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile

Avatar
Coach
MVP
radzmar
MVP

Likes

394 likes

Total Posts

2,684 posts

Correct Reply

489 solutions
Top badges earned
Coach
Ignite 3
Ignite 1
Validate 1
Give Back 50
View profile
radzmar
MVP

01-04-2017

Avatar

Avatar
Give Back
Level 1
JLNdev
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Give Back
Level 1
JLNdev
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 1
Applaud 5
View profile
JLNdev
Level 1

20-04-2017

Hi Radzmar,

Hey, I think I have it partially figured out! I was able to set up a custom variable function with the code from your site, and I was able to set up the import button with the associated "actions.importXML()" code. However, when I export the data and then import it, I'm getting an invalid data message. Is there a chance I could send you the form and have you look at it, so you can tell me what I'm doing wrong?

Thanks for considering it!

JLN