Expand my Community achievements bar.

cancelAction deactivates whole code

Avatar

Level 1

Hey,

got the following problem:

When triggering the prePrint-event:

if(!nStatus){
        app.alert("XXX");
        xfa.event.cancelAction = true;
        }

my document doesn't run the other code normally afterwards (if printing is actually cancelled). So if I want to go on working in the document, every code-based event just says: "Action cancelled". What happened?

Greets,

hans

4 Replies

Avatar

Level 1

Info: Using LC ES 8.2.1.4; Adobe Reader 10.0.0

Avatar

Level 7

Hi,

Here's a couple of related discussions that might help:

http://forums.adobe.com/thread/787110

http://forums.adobe.com/message/3442843

I'm interested in seeing what others might be post here.

Good luck,

Stephen

Avatar

Level 7

There seems to be a bug in Reader 10.0 where cancelAction cancels all your code not just the action it is assigned to. It has been fixed in version 10.1 but that doesn't help for people using 10.0. The bug has been reported but I haven't heard if there is a way to make it work in 10.0. I would love to know if there is - I have taken out my prePrint cancelAction and just put in a messageobx warning people before they print - but unfortunately I can't stop them printing if they still want to.

Avatar

Level 1

hrm, that's too bad, latest update doesnt seem to fix the problem :/

whyisthisme's answer seems to be the only reasonable solution...

Thanks!