Help! How to do a 'Save to Print' option

Okay, so I admit I know just enough ColdFusion to be
dangerous but not efficient.
I am developing an Obituary database for a client including
Last Name, First Name, Date of Death, Source, Source Date, etc.
Each record has a unique ID as primary key.
The end user can search for records that meet various search
criteria. The client would like the end user to be able to save
various records to a "print record" that would store them until
they are ready to print all the records. (Client is a library so
they want to save printing paper).
I've tried to tackle this problem in multiple ways but
without much success. I think I may be limited by my knowledge of
client and session variables and/or structs and arrays.
Because of my lack of knowledge of structs and arrays, I set
up a table in my database called print list and simply stored the
ID of the record when the end user added it to the print list. The
problem, however, is that if mutiple users are using the database
at one time, the print list will not be exclusive to that
particular user.
I need to know the most efficient way to allow the end user
to add to and delete from a list of print records and of course
eventually print the record and empty the list, but do so in a way
that multiple users on separate workstations could potentially do
so simulaneously without interfere with each other.
Any ideas would be much appreciated.

This is exactly why session variables were invented...for
this kind of situation, and thus, you should scrap the table in
your database and use session variables. e.g:
Try this code out in a test page and it should give you some
idea how to accomplish this:
<cflock scope="session" type="exclusive" timeout="30">
<cfset session.printList = arrayNew(1) />
</cflock>
<cfset arrayAppend(session.printList, "someID") />
<cfset arrayAppend(session.printList, "someOtherID") />
<cfset arrayAppend(session.printList, "yetAnotherID")
/>
<cfset arrayAppend(session.printList,
"thisCouldBeAnotherID") />
<cfdump var="#session.printList#" />
<cflock scope="session" type="readonly" timeout="30">
<cfoutput>
<ul>
<cfloop index="i" from="1"
to="#arrayLen(session.printList)#">
<li>This is array Item
<strong>#i#</strong> and its value is
<strong>#session.printList
#</strong></li>
</cfloop>
</ul>
</cfoutput>
</cflock>
It basically create a variable in the session scope which is
unique to the user and then in this variable we create an array. A
simple array is NOT complicated, don't be worried about this. All
an array is, is literally a list. We make lists all the time in
daily life and this is the programming equivelant. It gives us an
ordered way to store and play with items.
The example shows you the creation of the session variable
with the array...I also show populating the array using
arrayAppend...try adding some of your own and refreshing the page.
You'll then see in the CFDUMP what this variable holds.
Finally, I play with the array with a simple CFLOOP...just
loop out the list to the screen.
Good luck,
Mikey.

Similar Messages

  • How to set and save Custom Print Settings in Aperture?

    How to set and save Custom Print Settings in Aperture
    Hi,
    I am printing 12x18" images on 13x19" sheets. I find it difficult to enter the 13x19" dimensions because each value jumps to another random value when I move to enter the second dimension. For instance 13 jumps to, say, 8.5 as I type 19 into the second box. Same with the sheet dimensions.
    Also, when I finally get it all correctly, the margins don't set themselves automatically - which I would I expect.
    Then, even though I save the setting by clicking Save Setting at the gear below, next time I turn Aperture on, it's all gone.
    Any ideas? Thanks.
    Raphael

    For me, it is working with these settings, Raphael.
    Does your image have a 12x18" aspect ratio? You may want to crop it to the desired aspect ratio before printing.
    I can only test with Aperture 3.6 on Yosemite 10.1.

  • Line space removed when selecting save or print options

    I created a form in CS3, converted to PDF in Pro 9 and filled-in the text.  I edited the form to include additional information, and now each time I select "Save" or "Print" option the line spaces I entered are removed as though there is some compression feature that's doing this. This also happens if I click on the form outside the text box with any tool..Does anybody have a suggestion or answer for me?  If you'd like to be placed on the list of my most favorite people, I'd appreciaate your response!

    Are you sure this is happening when you print to PDF?
    And not, later, when you print the PDF?
    What print scaling do you choose in Adobe Reader/Acrobat?

  • How to prevent the "save a copy" option

    using Acrobat Pro 7.0
    When I set the security to "don't allow editing", and open the pdf  with Acrobat reader, the save button is disabled, as expected.
    But when I place this same pdf on a webpage, using code shown below, when the pdf displays within the browser, a "Save a copy" button allows the file to be saved. How do I prevent my file from being saved when I show it in the webpage ?  I only want the user to view my pdf on a web page - not saving and  printing.
    <a href="test.pdf">test </a>
    Also, what is the best way to present a pdf in a website
          a) use a href link
          b) use the save as html option ? (this does not do a good job when the pdf has images)_
    thanks

    Bill@VT wrote:
    That is the nature of the web.
    You might say that this is the nature of computers. To view "any" fie, a copy has to be saved on your machine somewhere. Web or otherwise.

  • How do I obtain 'Save As PDF' option in MS Access 2003?

    Ever since I installed the Adobe CS2 Premium Suite (containing a full copy of Acrobat) on my PC a long time ago, the main menu of Microsoft Access 2003 has contained an item that would let me save an Access report as a PDF. I have since upgraded to Adobe CS4 Design Premium (which includes Acrobat Pro V9).
    Recently, that menu item in Access has disappeared for some unknown reason and a reinstall of Acrobat Pro V9 made no difference. Does anyone know how I can reinstate the 'Save As PDF' option in Access 2003?
    David

    I have now found a fix for my problem. After learning that the missing facility was called PDFMaker, I was able to get more useful results from a Google search. This led me to the following Adobe Archived Technote, entitled 'PDFMaker is unavailable in a Microsoft Office application'.
    http://kb2.adobe.com/cps/330/330984.html
    This Technote provides a string of 14 possible solutions, none of which worked until I got to Solution 6: 'Add the COM add-in file to the Windows registry'. This was done by running the following command in the Win XP Start/Run box.
    regsvr32 "C:\Program Files\Adobe\Acrobat 9.0\PDFMaker\Office\PDFMOfficeAddin.dll"
    With hindsight, this problem was almost certainly caused by me letting a Microsoft technician have remote access to my PC a few weeks ago in what proved to be a vain attempt to fix a Microsoft Update error relating to Office. This technician spent 40 mins making many changes to the Registry...
    David

  • How do I find the clean printer option?

    Where do I find the clean printer option? I am having problems printing.
    All ink cartridges have been replaced and it hasn't printed since.

    Hello mrsclean05,
    Welcome to the HP Forums.
    I see you are looking for cleaning instructions for the printer.
    Please click on the following link for Ink Cartridge Problem: 'Incompatible Ink Cartridge' or 'Ink Cartridge Must Be Replaced' Message Disp....
    The document will give you step by step instructions for cleaning the printer.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How do i change my photo print options to landscape or portrait.  I can't find where to change it.

    How do i change my print options in iPhoto to landscape or portrait.  I can't find where to change it.

    With the introduction of iPhoto 9 (11) there's no Page Setup anymore for iPhoto.  That's handled by iPhoto in the Print window by the layout and print size you've selected.  We'll assume you're using Yosemite and iPhoto 9.6
    We need to know more details of your problem and setup, i.e.:
    what do you see in iPhoto's Print window?
    has it ever worked with iPhoto 6.
    how are the photos oriented when viewed in an Event or album?
    what fixes have you tried?
    where is your library located?
    did you apply any updates or upgrades just prior to the problem occurring?
    are you running a "managed" or "referenced" library?
    what type of Mac?
    how much free space on your boot drive?

  • PDF will not save via Save Icon on Web Browser (All), but will save using Print option. How can I resolve this issue?

    Good morning all!
         I am trying to publish a fillable form to a website for users to fill out. The trouble is that I myself can fill out the form when I click the link, and save it using the disc icon. However when I have other users click it, they can fill out the form on the PDF in the internet browser, but cannot save it using the disc icon that pops up on the bottom right hand corner. I discovered that if I Save As Adobe PDF, it will save my information. When I try using the disc icon to save a physical copy, the information is completely missing from the field in the PDF, as if I never filled it out before.
    Since other users of all walks are going to be using it, I can't exactly give explicit instructions on how to use the work around for this, since it's intuitive to click the disc icon. Can anyone offer help regarding this issue?
    Some other pieces of information:
    I am using the Save as Other -> Reader Extended PDF -> Enable More Tools (Includes form fill-in and save), yet users cannot save the information typed in on the web browser PDF form.
    Thank you for your time and help.

    https://gsbs.uth.edu/dotAsset/93e2c3b0-ca8d-4335-b053-c608eb79def0.pdf
    Thanks for your reply.
    We're using Adobe Acrobat XI Pro 11.0.10 (Latest update)
    This looks to be the only PDF with the issue on fillable forms, but we have not yet posted any others with this issue.
    From that link, you can fill out the form, but when you click the pop up Disc icon on the bottom right, it does not save your typed in information. This happens on Firefox, Chrome, and IE. However when you click the print icon and Print as PDF, it saves the information you typed in.
    Thank you for your help.

  • Need help how to get G4 mac to print to HP Laserjet 4  w/usb/parallel cable

    I have a PowerPC G4 w/OSX 10.4.11 and a HP laserjet 4 connected with a USB to parallel cable,  I cannot get it to print,
    how do I fix it ?
    thanks in advance

    Have you tried going to the "Print and Fax" pane of the system preferences, and Control-clicking into the panel at the left that would normally show installed printers?
    If not, do that and if the cursor spins, wait until it stops, and the LaserJet 4 should show up as a Bonjour Printer/Scanner. Then click "+" to add a printer, then "more printers" and then select the HP device, and with any luck it should work.

  • Help: how to add a button to print the screen

    Hi,
    I am working on a set of forms. One of the feature user ask is to place a "Print Screen" button on the form so that user will be about to simply print the form screen.
    Any help will be greatly appreciated.
    Thank you in advance.
    Jimmy

    Thanks Rosario. I did that but it seems not working. In fact, I added a form level trigger key-PRINT and put "print;"
    Anyway, what does it really do? I think that it should not be identical to Print-Scrn on the key board.
    Jimmy
    Message was edited by:
    WJH

  • How do I change header/footer print options for font, font size, and color?

    I know how to change the text for web page print of footers/headers. I can see no option to change font, font color, or font size (such as available on IE). I want to change the font, font color and font size of the footer/header when I print a web page. I read the FAQs, found nothing that seems to fit. Can you assist? or is this option available on Mozilla. I have the latest/greatest version (set to auto update).

    OK, my question was about how to change font/color in headers/footers... This suggestion changes the font/color in the text, but NOT in the footers, unless I want everything in the same font/color. I need footers/headers in RED BOLD. I can do this on IE, but there does not seem to be an option for Mozilla.

  • How do you hide Save as PDF options (title, author, etc.)?

    The Print as PDF dialog has options for author, title, etc. I never use these and for me this area is just wasted space in the dialog window. Is there any way to hide this area so the file browser area is larger?
    Does Lion have these options and are they hideable?

    No for Snow Leopard and I assume no for Lion (I don't use Lion).  Apple hasn't changed standard file (that's the dialog) for years.
    If you want to improve the open and save dialogs to make them a little  easier to live with I suggest you add Default Folder.  It's been around since OS9 days simply because apple's treatment of these dialogs has always left something to be desired.

  • How to control "flip pages up" print option.

    Using P4014n HP LaserJet Printer.  Admiinstrator has set XML for Duplex Prinitng with Landscape Orientation, but we do not know what if any XML exists to control the Binding, for example, "Flip Pages Up" (aka, Calendar View) as referred to in the Finishing section of the Printer Controls.

    Hi,
    By using command node, with some command we can handle this.

  • Root Account - No 'save as pdf' print option

    The root account doesn't have the print option to 'save as PDF'. My other user accounts do have that option.
    Any suggestions on how to enable the 'save as PDF' option for an account or if something special is needed for the root account?
    -tjw

    I log in as root because I don't like having to fiddle with permissions. For example I installed wireshark and it wasn't allowed to capture packets from the network interface because it needed special permissions. Even though the account I was using was a sys admin account I still needed log in as root; change permissions somewhere.
    I decided that I would just log in as root. Yeah yeah its so very dangerous...no its not.
    But; now that there are these little goofy things like so 'save as pdf' button forcing me to click 5 times to to the save as a pdf option under the preview button I may go back to a vanilla sys admin account.

  • Sales Orders Screen: Preview and Print Option Not Available in Actions LOV

    Hi,
    We are using Custom Responsibility for Order Management.
    We can't find the Preview and Print Option in Actions list(Sales Orders -> Query for Sales Orders -> Actions).
    Kindly let me know how to add the Preview and Print Option to the LOV.
    Thanks,
    Tamil

    Hello,
    You have to find this function in standard responsibility and copy this name to your own.
    Regards,
    Luko

Maybe you are looking for