On 2018-01-03 20:50, Khurram Shahzad wrote:
> Hi,
> 
> We have integrated Tryton with BikaLims using BikaLIMS JSON API 
> (https://github.com/bikalims/bika.lims/wiki/BIKA-JSON-API)
> 
> For this, our Tryton module connects and retrieves data from BikaLIMS and 
> stores it in database. But, now we have a requirement in which we want to 
> download reports from BikaLims and display them in PDF Viewer. 
> 
> For example, from my module, I want to send following HTTP request after 
> authentication:
> 
> http://172.29.0.6:88/lims/clients/client-1/blood-5406-R01/arreport-15857/at_download/Pdf
> 
> As a response, I will receive the HTTP Response containing contents of PDF 
> report.
> 
> What is the best way of displaying this PDF file using Tryton?

You have two options:

    - return the PDF file as the result of Report.render.

    - put the PDF data in a Binary field (may be a Function field) and
      display the field on a Model (ModelSQL or ModelView of a wizard).

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20180104101600.GB3925%40kei.

Reply via email to