Forums
Lawson Design Studio
Embedd a DOC or PDF in Design Studio
Author
Messages
Chris12
Veteran Member
Posts: 150
6/24/2014 8:09 PM
Does anyone know of a way which I can embedd a PDF of Word doc in the UI Designer so users can read it ...
I really do not want to type all that information into a textarea ...
Any help is appreciated.
Chris
Ragu Raghavan
Veteran Member
Posts: 468
6/24/2014 9:38 PM
At one site, we painted buttons on the custom forms and linked them to documents on the servers. When users clicked the buttons the documents displayed.
Chris12
Veteran Member
Posts: 150
6/25/2014 10:21 AM
Good idea ... I will give it a try
David Williams
Veteran Member
Posts: 1127
6/25/2014 10:45 AM
//rpt="/servlet/Report?action=PDF&file=/"+host+"/law/print/"+usr+"/"+rptpath+"/1/"+rptname
//window.open(rpt)
John Henley
Senior Member
Posts: 3348
6/25/2014 11:07 AM
David, interesting idea...have you tested it to see that it works for Word files or even PDFs that are non-Lawson print files (since I'm guessing /servlet/Report looks for report metadata--and wouldn't just blindly open anything..)?
David Williams
Veteran Member
Posts: 1127
6/25/2014 11:54 AM
John, no, I assumed they wanted to open Lawson reports. My bad.
I actually created the shortcut to open a Smart Report version. The syntax would be a little different - Action=LSR and you have to include &REPORT_OWNER=userid
Chris12
Veteran Member
Posts: 150
6/25/2014 3:02 PM
Hi David .... This is not a Lawson generated print file .... it is just a PDF which will be stored on the server ... Will your solution still work? Can you give me a piece of code to help out ..... Running at a standstill
Chris12
Veteran Member
Posts: 150
6/25/2014 3:14 PM
Ideally I would love to embedd a PDF into a textarea .... Not sure if that is possible