PrePrint event scope affects all other print events?

A PDF requirement is to have one document print in different versions for different recipients -- e.g., court, DA, public defender ..
They aren't all allowed to see the same data on people in the system, and in one instance, the form must be secured as read only.
Sure, there are a few different ways to do this, but the workflow chosen was to complete a PDF form, and then intercept the print or email functions to hide and secure pages.
The people who fill out the form need the entire document.
My approach was to offer a standard print button from the tool palette. No problem.
Then I added another print button from the tool palette, and set the pre-print and post-print events to intercept and change the number of pages output (leaving out pp 4-6). Works fine.
form1.page1.btnPrintLimited::prePrint - (JavaScript, client)
    TextField1.rawValue = "Secure prePrint";
    page4.presence = "hidden";
    page5.presence = "hidden";
    page6.presence = "hidden";
Then, returning to the standard print button, it seems that now all jobs are rendered with the same pages missing as were defined in the pre-print and post-print events for the OTHER button.
What gives? I thought that the scope for control events would be limited  to those events themselves.
I even tried in the pre-print and click events for the standard report to force the visibility of pages suppressed in the events, e.g.,
form1.page1.btnPrintNormal::click - (JavaScript, client)
    page4.presence = "visible";
    page5.presence = "visible";
    page6.presence = "visible";
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
Is my approach a faulty one? Should I be trying something else?
I'm using LC Designer ES2.
Would appreciate any guidance.
Kind regards,
Brian

Hi Brian,
There are three classes or groupings of events:
Process events.
Interactive events
Application events
See a table and example form here: http://assure.ly/nB0Bvz. Also have a look at this example, as it shows you how often some process and application events fire: http://bit.ly/gW3RNr.
Okay, so interactive events like mouseEnter and click are restricted to the object that contains the script.
However process and application (including prePrint and postPrint) fire for all objects that contain script in those objects.
I hope the examples clear that up for you.
I think you might have to consider a role based approach to the form. So for example if you can determine who is looking at the form, then using an if/else statement, print the appropriate pages.
Good luck,
Niall

Similar Messages

  • Loading Flash Paper swf causes all other button events to fail

    Hi Everyone,
    I have created a project with Flash which I am using Zinc to publish as a projector for both Macs and Pcs. Now, in this app I am loading a pdf document converted to a Flash Paper swf. The moment I load this swf file into my project, it appears as though all other button events fail. If I remove the code which loads in the flash paper swf, all buttons function as expected.
    Can anyone please help me with a reason / solution for this?
    Any help is greatly appreciated!
    Cheers!

    Did that and there were no errors shown at any point, such as when publishing the .apk file.
    I found a solution. I was under the impression I needed to use touch events for it to work on a tablet, and changing those to normal mouse events solved the problem. Still not sure why it wouldn't work the other way, but for now it works as needed.
    Thanks!

  • Will not print text from PDFs - all other print is fine - Using nitro reader - Win7- HP4255

    Will not print text from PDFs - all other print is fine - Using nitro reader - Win7- HP4255

    Mulga
    Welcome to the HP Community Forum.
    Have you tried asking your question on the Nitro-Reader Forum?
    Nitro Reader Forum
    If you would like to try using the Adobe Reader, you might find help here:
    Manage Print Output with Print Preview
    See the section on PDF files
    Click the Kudos Thumbs-Up to show you appreciate the help.
    Click Accept as Solution when the Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • When I try to print an address from Address Book on an envelope, the printer menu shows the menu from IPhoto.  All other print requests show the normal pinter menu. How do get the normal menu?

    When I try to print an address from Address Book on an envelope, the printer menu shows the menu from IPhoto.  All other print requests show the normal pinter menu. How do get the normal print menu?

    Mike,
    Are any of your other applications going wonky, or is it just Logic?
    I'm afraid I've never heard of this particular problem before, but if it were happening to me the first thing I would do is delete my "com.apple.logic.express.plist" file in Library>Preferences, then repair permissions in Disc Utility, and finally restart my computer.  Then I would launch Logic and see if the problem has been corrected.  It's amazing how much these two steps can accomplish.
    If that doesn't resolve the issue I would launch Logic and go to Preferences>Audio Units Manager to see if all my plug-ins are properly validated.

  • Calendar Question: Why do all day untimed events switch to all day timed events???

    I've complained about this on other threads, but so far nobody has answer.  Can somebody please tell me why all day untimed events on the Pre sometimes switch to all day TIMED events (i.e., an event that starts at 12am and ends at 11:59pm)??  My guess is that this is yet another glitch with Google calendar sync, but I would like somebody to weigh in if they know how to fix it.  Thanks. 
    PS--I'm also still waiting for someone from Palm to address the daylight saving time glitch too, if anybody is out there.  Thx.
    Post relates to: Pre p100eww (Sprint)

    This is happening to me as well.  So far, I've noticed it only with repeating events, and not with all of them.  I started noticing the problem in late October, at the same time that I noticed some all-day repeating events being moved forward a day (see separate thread).  As of today (the 12th), I see a repeating yearly all-day event on the 14th that is changed to a 12:00-11:59 event; and a similar problem with an all-day event on the 20th that is supposed to repeat until the 22nd.  In that case, the event is showing only on the 20th and 21st, with the 22nd not showing the event.  In this same time period, there are many all-day events repeating yearly that are NOT showing any problems.
    At the moment all events seem to be showing up correctly in Google Calendar, which my Pre is syncing to. - Dan

  • I want to set default printer settings to be used only for a specific type of application, certain documents. All other print jobs should use a different default setting for the printer.

    I am printing a specific document from a web based application. This document need to be printed in landscape. So I would like to set the default settings for this specific printer to landscape. But for all other printers it should be portrait. But this does not seem to work. The browser picks the settings from the standard/default printer and uses this for all print jobs.

    Embie wrote:
    I was told by support that my problem was a hardware problem and that HP would not replace the faulty hardware.  Great.  I will replace my faulty hardware manufacturer.  Simple, HP never again.
    In the hour since you have registered you have posted seven messages, none of which contain any useful information that would allow someone here to help you.  Please read this post then provide some details in a new thread.  What printer model? What operating system? How is the printer connected - USB, wired LAN, Wireless LAN, bluetooth?  What is the problem you are having (with the printer...)?
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • All tests print out fine, but all other print jobs get caught in printer as the page exits printer

    I have a HP Photosmart D110 printer.  Can't print out anything - except tests - without the page getting chewed up on left corner as it exits the printer.
    JoanP

    Hi you can try the steps on this video
    http://h30460.www3.hp.com/?rf=sitemap&fr_story=0d22534555a7583162469f89904ab9e0345bf9ca&jumpid=reg_R...
    its a general solution but if after this the issue persist contact HP for a warranty replacement just take note on the steps that you performed so you will not have to do them again

  • How can I change the width of a field without affecting all others ?

    I'm working with Text fields that have, for example Name, address, etc. on the left & the box to its right.
    I'm further down the form & want to allow for a longer field description but then it changes all the formatting above.

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • All-Day-Events Not affecting Availability

    Hi All,
    We have iCal server setup on 10.5.4 and I've come across a bug in the iCal client (3.05).
    If someone has created an event and checked it as All-Day, that event will not affect that users availability if someone else tries to add them as an attendee.
    I have checked the option on for each calendar (Get Info) that "Events Affect Availability". Other events do affect availability, just not events flagged as "All Day".
    Any ideas? Or is it still a bug in 10.5.5 (also happened in 10.5.4)?
    Thanks in advance!

    In the iCalendar data format used to represent the event information, there is a TRANSP property that can indicate whether a specific event contributes to freebusy or not. By default iCal makes timed events appear as busy, and all-day events appear as free (transparent). There is no way in iCal itself to change that. The only workaround when using iCal is to create a timed event that blocks out 24 hours.

  • Reader on my new iMac will now print only in black after once checking gray scale and then unchecking .. has affected all apps

    I have Reader running on my new iMac OS X 10.9.4. Used it to print a document in gray scale .. which it did .. and then I unchecked that box. All subsequent attempts to print in colour result in black only .. and it has affected all other colour printing attempts from other apps. Tried shutting down, re-starting. .. checked that printer, HP6310 aio will copy in colour. Any bright ideas about how to fix this situation?

    I have Reader running on my new iMac OS X 10.9.4. Used it to print a document in gray scale .. which it did .. and then I unchecked that box. All subsequent attempts to print in colour result in black only .. and it has affected all other colour printing attempts from other apps. Tried shutting down, re-starting. .. checked that printer, HP6310 aio will copy in colour. Any bright ideas about how to fix this situation?

  • I can no longer print off a web page (eg Flight booking confirmation). Other printer functions are OK. Any ideas?

    My printer will no longer print off web-pages, either from the tool bar command or from the "print page" command. This has only just happened and seeems to have followed a MS up-date, but can't be sure.
    Can anyone suggest a fix?
    All other printer functions work OK.
    Many thanks.

    My printer is HP Photosmart C4650 Series. I can print from everything but the Web. I don't get an error message or anything it just will not print.
    I'm using Windows 7, it had been doing fine than it just decided to quit printing from the web.
    T'hank You,
    Angelia 
    [Personal Information Removed]

  • All Day Events shift order randomly when printing!

    When trying to print in month view, my all day events shift order within their day in a seemingly random way. This is a problem because I want certain all day events to line up next to each other day after day in a specific color coded way. This has been impossible for me to accomplish because for some reason what the month view looks like is never what the preview or printing looks like. Is it possible to lock the position of all day events so they print as they appear in month view?

    I'm having the same problem only not just when printing. My All-Day events (which I use more as notes than actual events) switch places all the time and I can't make any sense out of it. I thought it had to do with alphabetical order, but that's not it, then I thought it had to do with the order I typed them, but that's not it either. It's particularly annoying when I have two days with multiple identical events and yet they don't have the same order. There's got to be a way to order them manually, but if there isn't, Apple should add it quickly.

  • I just noticed that all my calendar events (other then yearly recurring) past the last 30 days are no longer on my calendar. Is there a way to retrieve them or are they lost?  I need them for my business!!

    I just noticed that all my calendar events past the last 30 days are no longer on my calendar,(other then yearly recurring) . Is there a way to retrieve them or are they lost?  I need them for my business!!

    Thanks for your reply. I did this and the events have not been restored. I am clouding between my iPhone and iPad and changed the settings on both devices. Do I need to power on and off?

  • Error Disables All Other Events

    I am using a property node for my STOP button to trigger an event within an event.  Everything was working fine when I just threw it together; added error handling and cleaned stuff up it no longer worked.  The symptom was my event within the first event never seemed to fire.
    I broke it down to simple stuff and I found out what causes this but I do not know why ... as usual.  Apparently, when I run an error cluster through my property node AND I trap an error (simulated by me toggling the boolean to T as in the screencap) no other events work except the one currently running, which happens to be the Application Timeout event.  If no errors, I can fire events within events all day long.
    No other events except timeout and "stop -> value change" in my little sample VI.  My workaround was to avoid running the error cluster through the property node.
    Solved!
    Go to Solution.
    Attachments:
    good_times.JPG ‏68 KB

    Nodes typically will not execute if error in is true. There are exceptions such as closing references. The LabVIEW help will tell you if the node executes normally when error in is true. The property node will not execute since you forced an error into it.
    Try out user events. Sure there is a lot more wires involved. But you can use Action Engines to store references and hide the creation, registration, unregistration and destruction of the user events.
    Timeout will continue executing. The loop has a false wired to the stop if true terminal. You have to wire a -1 to the timeout terminal to stop it from executing.
    Here is something that I think does what you are trying to do. Study it with the context help open and highlight execution turned on. (Also attached for LV8.2)
    =====================
    LabVIEW 2012
    Attachments:
    User Events.vi ‏17 KB

  • Viewing Outlook Calender by specified Events / Appointments while hiding all other info

    Hi Guys 
    Anyone out there with any suggestions on how to fliter an outlook Calender by a specific Task / Event, for eg if i want to see for the next month how many Court appearance I have to make and hide all other Events or if I want to filter by 2 or 3 specific
    events. Anyone out there know how I can do this, or if it is even possible in outlook.
    Thanks 

    Hi,
    As Roady says, we can use filter in view settings to filter your results. Or we can click Search Calendar field in the top right of the calendar. Then the Search Tools in Outlook can help you with much further filter search. Please refer to the picture below:
    Hope it helps.
    Thanks,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for

  • IPhoto library moved to external HD

    I moved my iPhoto library to an external drive to free up space on my mac HD. Now the projects I've made and shared on youtube, that have iPhoto videos in them can't be found, so I get a message that they will show up as blank frames. I am able to se

  • What to do if the buttons on your iPod touch 5 don't work?

    I have had my iPod 5 touch for slightly less than a year. It has been working great however just yesterday my iPod has not been responding when i touch it. For example i can use the home button but when i try to put my password pin in its like I'm no

  • RoboHelp 11-Maximum number of folder/topics

    I currently have two very large user guides. They were created either RoboHelp 7 or earlier and have been upgraded to version 9 and now 11. Is there a maximum number of folders/topics a user guide should contain within RoboHelp? I need to add more an

  • Regarding OO ABAP

    Hi,     plz. tell me can i use Protected methods of Global Class in my Report? if yes, than how.

  • Tried Mail New Look and 99% of emails are gone including accounts and sigs

    Can anyone please tell me how to restore my old mail? My 40k emails are gone including drafts and sent mail and I haven't backed up for a year.