print or delivera document from process flow

 10 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Willie
Basic Member Send Private Message
Posts: 14
Basic Member
I am able to create an html email using variables etc and email to recipient. I have a similar project where I would like to deliver a similar document to a printer or to the users inbasket. I would like the user to then be able to mail this document to the customer. PDF or some other format would be great. Is this possible via process flow.

Thanks. 
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
You can create XML, text or CSV files written out to the server and then attach them to your email within ProcessFlow, but I'm not sure how you would create a PDF document unless you created a file that another print client could convert for you. You'd have to execute a system command or some web server to do that conversion (I'm just guessing here) but if you could get your output in PDF then you could attach it to your email the same way.

I've run Lawson report jobs and then attached the PDF version of those reports to an email so once you have something on the server, you can reference the file location and attach it to your email.
David Williams
Willie
Basic Member Send Private Message
Posts: 14
Basic Member

Thank you, I am actually trying to bypass email. I have attached documents to email before but in this case since the data is sensitive, I would like to do a printout or deliver to the users inbasket which they can then print and mail to the recipient.

Thanks

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
What you can do is to email a URL link to a report on a server (or shared drive) and allow users to access it via the link. The security on your server will limit who can retrieve the documents via the link. You can also include this type of URL link on the ProcessFlow Inbasket.

Depending on the type of file you create, you can push a report file to print out on a Lawson printer:
lpr -P printerName /prod/apps/prod/work/fileName
David Williams
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
@David: You can make the Lawson system call to $GENDIR/bin/bldxffiles -SP fsuser ${wf185c1_dir} CB185.prt
And this will convert in my example, the CB185.prt file created by a job run by fsuser to a pdf. Then you could push to a Lawson printer using your lpr command syntax.
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
I've actually just called the PDF version and the systsem seemed to create it automatically.

//View Report
David Williams
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
I tried to comment out the JavaScript so you could see the URL string.
// http:///servlet/Report?action=PDF&file=/lawson/law/print/jobsched/x0532dly/1/X0532.prt&LAYOUT=LANDSCAPE
David Williams
EchoSchmidt
New Member Send Private Message
Posts: 2
New Member
Hello David I am very new to Lawson so I apologize for my newbie question.  But I am currently working to automate the Lawson nightly reports that go the a physical printer to instead print to a fileshare as a pdf

Looking around on Lawson Guru has surfaced a bldxffiles which I have successfully used to convert an inplace prt to pdf through LID cmd line. 

However, I now need to make the next jump of having the automated print reports go directly to a specified location when Lawson generates them nightly. 

I was wondering if there is a way to define bldxffiles as a printer in Lawson and then use the .bat to create the pdf and save it to the designated location? 

But again I am very new to Lawson and am just trying to connect all the functionality available and figure out the best way to go paperless with these reports.  Your guidance who very much appreciated.

David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
I don't think you can modify the location of the output file, but you can use a shell command to move the file to another location after it has been generated.
David Williams
David Williams
Veteran Member Send Private Message
Posts: 1127
Veteran Member
If you are running these from the recurring job scheduler, you should be able to create a multi-step job that includes creating the PDF version and moving or copying to another location.

If you are running these from ProcessFlow, which also gives you the ability to modify the job's parameters, then you would create your PDF and move or copy your file.
David Williams
George Graham
Veteran Member Send Private Message
Posts: 201
Veteran Member
You've got some different possibilities to accomplish all of this. If you want the job to be dynamic in terms of the PDF it generates you could have the flow modify the job parameters for the output file name and have it generate the file (and in the path you want). As David mention there are all sorts of command line tools to convert a file to a PDF. Then, as far as delivery you could create a custom inbasket that creates a link to the file that they could download.

And if you are just needing the file to go to a printer - you can change the job setup and/or direct it to a printer from the command line.