...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) |