Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next

Still not really understanding...

...but that could be because the way you do it is different from how I would have done it.
First, let me see if I understand the process and intended result.

>I have is a form with the fields to be printed.

Do you mean documents? Or are you talking about the form used to create the documents?

>I search and find the people that need to
>have name tags printed and I move them into
>a folder. The folder has an action button
>that selects all the entries, brings up the
>print dialog and when done removes all the
>documents from the folder and closes the
>folder.

OK, I understand this part, you move a number of documents that you have identified through some process to a folder.

>In the print dialog the user needs to make the
>change to print more than one document for
>page and then the user selects the form to be
>used for printing (the one that has the proper
>layout)

How can you first bring up the print dialog and then select the form to use? Should it not be the other way around?

>but at that point I don't have access to the
>form to change the key field to drive the hide
>when formulas.

You would if you first let the user select the form to use, and then do the printing...


This is how I would do it:
Documents are created using a form, let's call it "Base Form". It contains all the fields you want to print. It also contains an additional field, "PrintStatus". Default value is "New".

You create a view called "Ready to Print", with a selection something like this:
SELECT Form="Base Form" & PrintStatus="New"
The view contains an action button that act on selected documents. This way you can select a sub-set and print just those documents.

The Lotusscript code in the action button will do the following:
* Get all selected document and put in a NotesDocumentCollection.
* Loop through all documents in the collection, for each one: set the form to "Form A" or "Form B" (if you need different layout, not just different colors), then open the document in the UI, do a uidoc.Print() and close the document without saving. Finally update the backend document by setting the "PrintStatus" field to "Printed".

Then you just need to create "Form A" and "Form B" and use hide-when to display different computed fields in different colors.

Just create a copy of the action button for each form (if you want to be able to use multiple forms) or put logic in "Form A" if you want the same layout, just different colors.

Since you are not explaining more in detail, it is hard to describe excatly how you should do it.
Perhaps you want the text to be blue if it is a male and pink if a female. Just make sure you have a gender field on the forms (hidden on "Form A"), then use hide-when to show the correct Computed-for-Display field on "Form A"...


Feedback response number WEBB8U3T5C created by Karl-Henry Martinsson on 05/07/2012

Change the font color in a field us... (Program Tester 3.May.12)
. . Should be possible with DXL (Robert Ibsen Vo... 3.May.12)
. . . . what will be the process? (Program Tester 3.May.12)
. . Hide-when? (Karl-Henry Mart... 3.May.12)
. . . . This seems like a good idea. Let me... (Program Tester 4.May.12)
. . . . . . Still not really understanding... (Karl-Henry Mart... 7.May.12)




Printer-friendly

Search this forum


Sign In or Register

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support


 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow