Manage Learn to apply best practices and optimize your operations.

Hide the action bar when printing

The problem here is that each refresh or redirection is another hit on the server. To get around this, we use this code:

This Content Component encountered an error

We have an action bar using the Java applet and wished to hide the bar when printing. Our original solution was to either refresh or re-open the form, setting hide-when formulas to prevent the action bar from displaying. We then either refresh or redirect back to the original URL. The problem here is that each refresh or redirection is another hit on the server. To get around this, we use the following code:

For IE 5.5, there is a bug in the browser that prevents the window.print from functioning. We have a work around for this that involves using the JS 'setTimeout' function:

setTimeout('document.all.tags("Applet")(0).style.display="none";', 200);
setTimeout('window.print();', 200);
setTimeout('document.all.tags("Applet")(0).style.display="";', 200);

This was last published in April 2002

Dig Deeper on Domino Resources - Part 6

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...