Hi all,
I'm trying to figure out the proper way to construct and print multiple work order reports - all at once.
I currently have a div container that has css styled and formatted html tags that print out a single work order report sheet using the jquery "printElement" plugin. When i press the work order entry form print button, my print-work-order(WOID) javascript function populates and prints a hidden div container that contains a formatted work order sheet layout.
I'd like to also be able to print multiple work order reports by...
1. populating the hidden div container with the next work order data
2. appending or adding the div container and contents to some variable or structure
3. keep populating and appending the div container to the variable or structure until all selected work orders are processed
4. use either the same printElement plugin or some other method to print all the stacked work order divs (sheets) at once - one work order per sheet.
I've never tried to do this before so i'm at a loss as to how to proceed. I'm guessing i can use jquery methods to accomplish this - i just don't know how. In fact, i'm starting to thinking that constructing the work order report directly into a javascript variable or structure may be a better idea than using a hidden div container - i'm just not sure.
I'm thinking i have the right idea or approach, but i would appreciate some further insite on this issue.
thanks.